tikzplotlib icon indicating copy to clipboard operation
tikzplotlib copied to clipboard

Axis edge width not working

Open vineetsoni opened this issue 8 years ago • 0 comments
trafficstars

When I try to change the width of the axis, it does not work in the matplotlib2tikz export. However, the same works if one exports in PDF format.

Please have a look at the script below that would help you reproduce the issue:

import matplotlib.pyplot as plt
import numpy as np

N = np.zeros((512,512))

plt.rcParams['axes.edgecolor'] = 'k'
plt.rcParams['axes.linewidth'] = 3
plt.rcParams['axes.grid'] = 'False'

plt.imshow(N, cmap='gray', clim=(-1,0))

from matplotlib2tikz import save as tikz_save
tikz_save('axis.tex')

The output should look like: axis

However, with matplotlib2tikz, it looks like: axisplot

vineetsoni avatar Jun 25 '17 13:06 vineetsoni