-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Description
Hello,
Please find below a script extracted from pgfplots manual:
\begin{tikzpicture}
\begin{axis}[ymin=0, ymax=1, enlargelimits=false]
\addplot [const plot, fill=blue, draw=black] coordinates {
(0,0.1) (0.1,0.15)
(0.4,0.56) (0.5,0.58) (0.6,0.65) (0.7,0.6)
(0.8,0.58) (0.9,0.55) (1,0.52)}
\closedcycle;
\end{axis}
\end{tikzpicture}My question is simple but after long hours of searching, no solution. How can I inject \closedcycle in the python script below:
with doc.create(TikZ()):
plot_options = 'height=6cm, width=12cm, grid=major, ymin=0, ymax=1, enlargelimits=false'
with doc.create(Axis(options=plot_options)) as plot:
coordinates = [(0,0.1), (0.1,0.15), (0.4,0.56), (0.5,0.58),(0.6,0.65),(0.7,0.6),(0.8,0.58),(0.9,0.55),(1,0.52)]
plot.append(Plot(name='Constant Plots', coordinates=coordinates, options=Options('const plot','fill=blue','draw=black')))Thank you for your help ! Have a nice day.
Metadata
Metadata
Assignees
Labels
No labels