tikzplotlib icon indicating copy to clipboard operation
tikzplotlib copied to clipboard

Ticks Issue

Open johanneskrost opened this issue 6 years ago • 2 comments
trafficstars

Hi,

I executed the exact same example code given in the manual and rendered the picture in Latex. However, the outcome differs. The axis ticks are shown outside the plot and on all 4 edges, which looks silly.

silly-ax_axis

I run the Python plot on python 3.7 and use TexMaker for editing the Latex file. Any leads?

johanneskrost avatar Aug 17 '19 11:08 johanneskrost

For reference:

You want xtick pos=bottom, ytick pos=left, or alternatively tick pos=left which does the same thing. The length of the ticks is defined by the tickwidth parameter.

https://tex.stackexchange.com/questions/387611/pgfplots-remove-tickmarks-on-right-and-top-of-plot?rq=1

MadsAdrian avatar Dec 20 '19 07:12 MadsAdrian

I've tried reproducing this on two different machines, but had no success. Perhaps there's nonstandard matplotlibrc config on your machine.

nschloe avatar Jan 16 '20 17:01 nschloe