Hi ,
The example below seems to do what you want, but I'm not sure if this is the
favourite way to do it.
Please notice: the if-statement might not be correct in any case of
application.
regards Matthias
>---
per freem writes:
> i am using the tex feature to put some greek symbols in some labels of my
> plots. for example,
>
> rcParams['text.usetex'] = True
> plot(a, b, 'o')
> xlabel('\Delta direction')
Are you sure you need usetex? Matplotlib's own mathtext renderer is
really quite good these days,
Daniel Soto writes:
> as far as the pdf.compression not working, i was using rcParams in the
> script so i'm almost certain the options were being loaded.
A quick way to check if your pdf.compression setting is being picked up
is to grep the pdf file for /FlateDecode. If pdf.compression is set t
lionel keene wrote:
> Hello all, I'd like to create a "matplotlib.pyplot.figure(...)" object
> and specify the size while I'm at it. I see this argument list from
> the matplotlib's documentation:
>
> pyplot.figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k')
>
> The on-screen
>
this seems to be because the default backend was set to something
without a gui.
i set backend to WXAgg and it works now.
> --
>
> Message: 7
> Date: Tue, 3 Mar 2009 16:44:41 -0800
> From: Daniel Soto
> Subject: [Matplotlib-users] error with ginput
> To: matplotlib-us
hi all,
i have the following plot:
rcParams['xtick.direction'] = 'out'
rcParams['ytick.direction'] = 'out'
scatter(x, y)
this changes the tick directions to be out. how can i make it so only the
ticks on the x axis and y axis appear? i.e. remove the ticks that are in the
top axis (the one parall
hi all,
i am using the tex feature to put some greek symbols in some labels of my
plots. for example,
rcParams['text.usetex'] = True
plot(a, b, 'o')
xlabel('\Delta direction')
the '\Delta' is rendered correctly but that changes the fonts of the tick
labels and of all the text in the labels to te
hello,
ginput isn't working for me right now but was when i was using 0.98.3.
running the script below gives me the following traceback.
anyone know what is going on?
thx,
drs
> python -c "import matplotlib;print matplotlib.__version__"
0.98.5.2
> ./gaelInput.py
Please click
Traceback (most r
ok. i managed to install 0.98.5.x from source into my enthought
python distribution.
after that, using path.simplify helped considerably.
as far as the pdf.compression not working, i was using rcParams in the
script so i'm
almost certain the options were being loaded.
thanks mike,
drs
On 3
Hi Eric,
thanks for the reply.
On Sat, Feb 28, 2009 at 20:56, Eric Firing wrote:
> It is not really a bug; it is an inherent limitation in mpl's default
> automatic Axes positioning. Axes positions are given in normalized
> coordinates relative to the figure, so if you shrink the height of the
>
Hi Michael,
MD> With recent versions of matplotlib, you can set the "path.simplify"
MD> rcParam to True, which should reduce the data so that vertices that
MD> have no impact on the plot appearance (at the given dpi) are
MD> removed.
Wow. My time-domain waveform plots went from 3.3 mb to 84 kb.
On Mar 3, 2009, at 12:19 PM, Eric Firing wrote:
> An argument could be made either way, but I think the present
> behavior, in which autoscale_view is called after changing the
> scale, will cause the least surprise in the majority of cases. The
> default locator depends on the scale, and is
Keoki Seu wrote:
> Greeting everyone,
> In pylab (matplotlib 0.98.3.001 on Mac OS X) I've discovered that
> changing the xscale from linear to log removes the previously set xlim.
>
> For example
> In [1]: import pylab
> In [2]: x = pylab.arange(100)
> In [3]: y = pylab.sin(x)
> In [4]: pylab.pl
Greeting everyone,
In pylab (matplotlib 0.98.3.001 on Mac OS X) I've discovered that
changing the xscale from linear to log removes the previously set xlim.
For example
In [1]: import pylab
In [2]: x = pylab.arange(100)
In [3]: y = pylab.sin(x)
In [4]: pylab.plot(x, y)
Out[4]: []
In [5]: pylab.x
Daniel Soto writes:
> are there any other options or backends that might help?
One thing that might be worth trying if this is a real problem for
you -- but it will require some programming -- is to make use of the
start_rasterizing and stop_rasterizing methods of MixedModeRenderer.
You would
Jeff,
I've been doing some more tests today.
2009/3/3 Jeff Whitaker
>
>Jose: I think the key is to only create the basemap instance only
>>once (for the main plot and for the inset), then re-use that
>>basemap instance each time you create an animation frame.
>>
>> That helps in mem
Hello list,
in the small example below with xscale and yscale logarithmic I'm not able to
set the xlabel inside the axes initialisation. The error output is attached.
It doesn't happen if I use the pylab command 'xlabel' or set one of the
scalings to linear.
Is this a bug or do I miss anything
path.simplify was added some time after 0.98.3. You'll have to upgrade
to 0.98.5.x for that feature.
pdf.compression should have some impact on file size, but I doubt it
will have much impact on display times, since it doesn't actually remove
any data. I'm surprised this isn't having any effe
Mike,
Thanks for the tip, I was also thinking of using some kind of nonlinear
transform onto a 1D segmented colormap... I'll let you know if I come up
with a solution.
-Pete
On Tue, Mar 3, 2009 at 8:27 AM, Michael Droettboom wrote:
> I don't think there's anything that will directly do what y
thanks for the suggestion. i'm running 0.98.3 and have tried
pdf.compression
path.simplify
agg.path.chunksize
without any change in filesize (176KB) or time to open file (13 sec).
are there any other options or backends that might help?
drs
On 3 Mar 2009, at 05:29, Michael Droettboom wrote:
With recent versions of matplotlib, you can set the "path.simplify"
rcParam to True, which should reduce the data so that vertices that have
no impact on the plot appearance (at the given dpi) are removed.
You can do either, in your script:
from matplotlib import rcParam
rcParam['path.simpl
I don't think there's anything that will directly do what you want.
However, you can provide a list of colors (one entry for each point) to
scatter(), (the c kwarg) so you can generate your colors however you
need to beforehand. If you come up with a solution that's generic
enough, we would de
Hi Blake,
the following addition should do what you want:
self.ax = self.fig.add_subplot(1,1,1, autoscale_on=False, xlim=(0, 100),
ylim=(0, 100))
or by hand after creation of the axes
self.ax.set_autoscale_on(False)
xlim(...)# or self.ax.set_xlim(...)
ylim(...)
That is you
Hi,
I have started to use pyplot to create graphs, saving the images and
generating an animation from the collection. Pyplot autoscale the
axes, which isn't suitable for an animation. At the moment I reset
them (for every frame) using the xlim / ylim functions:
import matplotlib.pyplot as plt
24 matches
Mail list logo