Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tikz \closedcycle #213

Closed
Guillaume1801 opened this issue Mar 24, 2018 · 1 comment
Closed

Tikz \closedcycle #213

Guillaume1801 opened this issue Mar 24, 2018 · 1 comment

Comments

@Guillaume1801
Copy link

Guillaume1801 commented Mar 24, 2018

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.

@Guillaume1801
Copy link
Author

#259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant