Kozea / pygal

PYthon svg GrAph plotting Library
https://www.pygal.org
GNU Lesser General Public License v3.0
2.62k stars 411 forks source link

show_y_guides=False doesn't work when rendering to an svg string (as opposed to a file) #536

Closed danchallis closed 1 year ago

danchallis commented 1 year ago

So with this chart declaration...

chart = pygal.Line(width=600, height=400, x_label_rotation=20,show_legend=False, style=BlueStyle,interpolate='cubic', fill=True, show_y_guides=False, show_x_guides=False)

chart.render_to_file correctly removes the x_guides and y_guides, but chart.render (to an svg string) leaves the y_guides visible on the chart. See attached images of output.

Would it be possible to make these consistent?

image

image

danchallis commented 1 year ago

This is actually an issue with svglib when converting the image to a png. The show_y_guides=False is apparently being ignored.