tikzplotlib icon indicating copy to clipboard operation
tikzplotlib copied to clipboard

legend with markerevery not showing properly

Open louisgag opened this issue 2 years ago • 0 comments

I'm using version 0.10.1 of tikzplotlib and noticed this issue in the legend when working with the markerevery option. The legend is apparently made of three points and will thus only show properly if the markerevery option requires a marker on the second point.

The PGF solution is to include this in the axis command of the pgf file: legend image post style={mark indices={}}, as described here.

Python code, the output TeX (Pgfplots), and the expected TeX (Pgfplots) are attached: exampleMarkerevery.zip

Nonworking result: Screenshot from 2022-09-26 12-57-25

Working result: Screenshot from 2022-09-26 12-56-41

louisgag avatar Sep 26 '22 10:09 louisgag