Hi,
on the following test case:
import numpy
import pylab
from matplotlib.dates import DateFormatter, HourLocator, MinuteLocator
fig = pylab.figure()
ax = fig.add_subplot(1,1,1)
tics = numpy.linspace(1.3,1.6,4)
for tic in tics:
t = numpy.linspace(tic, tic+0.01, 100)
ax.plot(t, numpy.r
In article <[EMAIL PROTECTED]>,
belinda thom <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> At http://matplotlib.sourceforge.net/installing.html under topic OS X:
>
>"All of the backends run on OS X. Chris Barker has built a binary
> package (fink users see below) for matplotlib which is host
Robert Cimrman wrote:
[...]
> What could be done, though, is to raise an exception explaining that
> sparse matrices and the image mode don't like each other; as it is, the
> function spy3 just dies on asarray (should be st. like asarray(
> Z.todense() ))
(I think it would be Z.toarray().)
Goo
Yannick Copin wrote:
> Hi,
>
> Eric Firing wrote:
>>> from pylab import *
>>> X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11))
>>> Z = randn(*X.shape)
>>> lev = linspace(Z.min(),Z.max(),11)[1:-1]
>>> contourf(X,Y,Z, lev, extend='both')
>>> contour(X,Y,Z, lev, colors='k')
>>> show()
>>
>> Now,
Steve Schmerler a écrit :
> Darren Dale wrote:
>
>> On Monday 11 December 2006 09:59, Nicolas Champavert wrote:
>>
>>> Steve Schmerler a écrit :
>>>
Nicolas Champavert wrote:
> Hello,
>
> I have some problems when trying to save a figure with usetex=T
Darren Dale wrote:
> On Monday 11 December 2006 09:59, Nicolas Champavert wrote:
>> Steve Schmerler a écrit :
>>> Nicolas Champavert wrote:
Hello,
I have some problems when trying to save a figure with usetex=True.
Sometimes, it is not possible to save the figure when trying t
On Monday 11 December 2006 09:59, Nicolas Champavert wrote:
> Steve Schmerler a écrit :
> > Nicolas Champavert wrote:
> >> Hello,
> >>
> >> I have some problems when trying to save a figure with usetex=True.
> >> Sometimes, it is not possible to save the figure when trying to put an
> >> xlabel w
No the '\' is not the problem. \odot is a LaTeX command. I still have
the problem if I don't use it (see below with only pylab.xlabel(r'Upper
mass for the IMF (10$^3$)')) and \\odot writes 'odot' and doesn't write
the 'odot' symbol.
Gary Ruben a écrit :
> I haven't tried it, but my guess is th
Steve Schmerler a écrit :
> Nicolas Champavert wrote:
>
>> Hello,
>>
>> I have some problems when trying to save a figure with usetex=True.
>> Sometimes, it is not possible to save the figure when trying to put an
>> xlabel with LaTeX inside.
>> It works with pylab.xlabel('M$_\odot$') but no
Nicolas Champavert wrote:
> Hello,
>
> I have some problems when trying to save a figure with usetex=True.
> Sometimes, it is not possible to save the figure when trying to put an
> xlabel with LaTeX inside.
> It works with pylab.xlabel('M$_\odot$') but not with
> pylab.xlabel('10$^3$ M$_\odo
I haven't tried it, but my guess is the '\' character is the problem.
> pylab.xlabel('10$^3$ M$_\odot$')
Try
pylab.xlabel(r'10$^3$ M$_\odot$')
^
Add raw string marker.
or maybe
pylab.xlabel('10$^3$ M$_\\odot$')
Gary R.
Nicolas Champavert wrote:
> Hello,
>
> I hav
On Monday 11 December 2006 7:12 am, Nicolas Champavert wrote:
> Hello,
>
> I have some problems when trying to save a figure with usetex=True.
> Sometimes, it is not possible to save the figure when trying to put an
> xlabel with LaTeX inside.
> It works with pylab.xlabel('M$_\odot$') but not wit
Hello,
I have some problems when trying to save a figure with usetex=True.
Sometimes, it is not possible to save the figure when trying to put an
xlabel with LaTeX inside.
It works with pylab.xlabel('M$_\odot$') but not with
pylab.xlabel('10$^3$ M$_\odot$') (see below). Do you know why ?
In
Hi,
belinda thom <[EMAIL PROTECTED]> wrote on
[EMAIL PROTECTED]:
> Also, the mail archives I'm viewing look terrible: line breaks aren't
> in the usual place, things are presented with >'s in them (which
> would make sense if the line breaks were preserved, b/c they
> correspond to pieces o
Hi,
Eric Firing wrote:
>> in a case similar to matplotlib-0.87.7/examples/contour_demo.py
>> (figure 4), would it be possible to merge to two colorbars (a
>> continuous one from imshow, a discrete one from contour) into a single
>> colorbar? Indeed, in that case, the two colorbars are mostly re
Hi,
Eric Firing wrote:
>> from pylab import *
>> X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11))
>> Z = randn(*X.shape)
>> lev = linspace(Z.min(),Z.max(),11)[1:-1]
>> contourf(X,Y,Z, lev, extend='both')
>> contour(X,Y,Z, lev, colors='k')
>> show()
>
> Now, you may be wondering why we can't s
Eric Firing wrote:
> Robert Cimrman wrote:
>> Eric Firing wrote:
>>> Robert and any other spy users:
>>>
>>> I have committed to svn a new axes method, spy3, that combines a
>>> modification of the functionality of both spy and spy2. I hope you
>>> can check it out. If it looks OK, then I would
17 matches
Mail list logo