I have another problem after updating to SVN r4869. The ticks take the color of the plotted line without regard to the default. For example,
matplotlib.rc('xtick', color='black') matplotlib.rc('ytick', color='black') plot(x, y, 'red') will give red ticks. Paul Michael Droettboom wrote: > It's a bug. It's now possible for rgba colors to make their way all the > way down to that level, so the code needs to truncate that to rgb (Ps > can't handle alpha anyway). > > This is committed in SVN r4869. > > Cheers, > Mike > > Paul Novak wrote: >> Hello, >> >> I am trying to use the PS backend to make some simple line plots, >> using the following script, but I get the error messages included >> below when I try to plot with usetex=True. I have also included the >> output from --verbose=helpful. I am using the current SVN, and I don't >> recall having this problem when using 0.91.1. >> >> Thanks, >> Paul >> >> --- >> #!/usr/bin/env python >> >> import matplotlib >> matplotlib.use('PS') >> matplotlib.rc('text', usetex = 'True') >> from pylab import * >> >> x = arange(0,5) >> y = 2 * x >> figure(1) >> plot(x, y) >> savefig('psfig') >> show() >> >> --- >> $HOME=/home/pnovak >> CONFIGDIR=/home/pnovak/.matplotlib >> matplotlib data path /usr/lib/python2.5/site-packages/matplotlib/mpl-data >> loaded rc file /home/pnovak/.matplotlib/matplotlibrc >> matplotlib version 0.98pre >> verbose.level helpful >> interactive is False >> units is False >> platform is linux2 >> numerix numpy 1.0.3.1 >> Using fontManager instance from >> /home/pnovak/.matplotlib/fontManager.cache >> backend PS version Level II >> Found dvipng version 1.5 >> >> Traceback (most recent call last): >> File "junk.py", line 15, in <module> >> savefig('psfig') >> File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line >> 271, in savefig >> return fig.savefig(*args, **kwargs) >> File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line >> 854, in savefig >> self.canvas.print_figure(*args, **kwargs) >> File >> "/usr/lib/python2.5/site-packages/matplotlib/backend_bases.py", line >> 1085, in print_figure >> **kwargs) >> File >> "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py", >> line 837, in print_ps >> return self._print_ps(outfile, 'ps', *args, **kwargs) >> File >> "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py", >> line 863, in _print_ps >> orientation, isLandscape, papertype) >> File >> "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py", >> line 1051, in _print_figure_tex >> self.figure.draw(renderer) >> File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line >> 698, in draw >> for a in self.axes: a.draw(renderer) >> File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line >> 1397, in draw >> a.draw(renderer) >> File "/usr/lib/python2.5/site-packages/matplotlib/axis.py", line >> 680, in draw >> tick.draw(renderer) >> File "/usr/lib/python2.5/site-packages/matplotlib/axis.py", line >> 179, in draw >> self.label1.draw(renderer) >> File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line >> 761, in draw >> Text.draw(self, renderer) >> File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line >> 309, in draw >> self._fontproperties, angle) >> File >> "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py", >> line 544, in draw_tex >> color = '%1.3f,%1.3f,%1.3f'% gc.get_rgb() >> TypeError: not all arguments converted during string formatting >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users