On Tuesday 17 October 2006 11:50, Humufr wrote:
> did you try to fix the size of the figure and the dpi?
Just wondering: you wouldn't happen to plot a space character by itself, by
any chance ? I remmbr running into something similar (the dvifile not being
processed properly), and it turned out
- axes (understand, subplot) have a "is_last_row" method
you can use that to draw ticks on the bottom axis only
- for the legend, try to use the "legend" command of the figure
(something like gcf().legend()
-
Using Tomcat bu
Try a different backend. If one doesn't work, something went wrong during the
installation (it happened to me a couple of times, reinstalling from scratch
seemed to have solve the pb).
-
Using Tomcat but need to do more? Ne
On Monday 04 September 2006 14:28, Nicolas Bigaouette wrote:
> Hi,
> What is causing this? Did something changed that I need to adapt my code
> or is it a bug?
Check the "aspect" keyword of your image, and try to set it to 'auto'.
> Clearly, matplotlib's SVG backend doesn't seems to support TeX
>
On Monday 04 September 2006 05:20, Paul-Michael Agapow wrote:
> I'm having some problems installing matplotlib (actually PyLab, see
> below). Googling has revealed nothing, perhaps someone might
> recognise these symptoms.
mmh, you didn't check the mailing list before, did you ;)
You didn't precis
Folks,
I've just noticed that in order to get the size of a figure in inches, one can
use:
>>> fig.get_size_inches()
However, the corresponding 'set' method is
>>>fig.set_figsize_inches()
Is this intentional ? Wouldn't it be better to keep the set/get methods
consistent ?
Thx for your insight
Hola,
Use the SVN version, it works pretty OK with 1.0b2
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM We
On Wednesday 23 August 2006 02:19, David Goldsmith wrote:
> First, sorry for the long email.
>
> I'm having a segmentation fault problem trying to use plot_date,
Update numpy. Or matplotlib. Or in matplotlib/dates.py, change line 155 from
remainder = x - ix
to
remainder = float(x) - ix
--
On Thursday 03 August 2006 20:41, Gregory Piñero wrote:
> Another question, why are there only four bars showing up when I have
> 5 values and 5 labels?
???
On my machine, (matplotlib.__version__ = '0.87.4'), the script you posted
around 5PM (EST) works OK, five bars, five labels nicely placed (o
On Thursday 03 August 2006 17:44, Gregory Piñero wrote:
> So all you changed was to add in align='center' ? I assume me using
> figure.gca() is equivalent to your use of ax?
Yes, gca() is "get the current axes object".
> Is it hard to upgrade to the latest version from svn? Any directions?
[Fro
Chris,
http://matplotlib.sourceforge.net/matplotlib.pylab.html#-plot_date
+
google "date dateutils" site:http://matplotlib.sourceforge.net/tutorial.html
+
http://matplotlib.sourceforge.net/matplotlib_examples_0.87.1.zip
And if this is not enough, please be a bit more specific in your request: an
On Friday 28 July 2006 17:19, Richard Ruth wrote:
> I upgraded to matplotlib-0.87.4 Now I receive an error like the following
> every time I try to use matplotlib.dates. The following error messages
> were generated when I tried to run matplotlib-0.87.4/examples/date_demo1.py
>
> Any Idea on how
Glen,
Funny, I ran into exactly the same problem earlier that week. My guess is that
you use numpy, right ? 0.9.8 ? On a 64b machine ?
If that's the case, you should have the same problem with divmod and numpy
each time you use float64 as dtype: each element is a float64scalar that
divmod doesn
Stefan,
> Is this normal? If so, how do I get around the problem? I also
> noticed that, even without extents, the image gets scaled after
> plotting.
Try to set the "_autoscale" parameter of your current 'axes' to False. That
way, you should avoid any inopportune rescaling. For the image, try
HI,
There are series like that...
> I need to plot in West
> Longitude, where the left edge of the graph starts at 360 and the right
> edge ends at 0. Does anyone know how to do this?
Assuming you have a plot (not an image):
xlim(360,0)
or gca.set_xlim(360,0)
HIH,
P.
--
On Tuesday 25 July 2006 12:30, massimo sandal wrote:
> Hi,
>
> What is the method used to flip axes in X and/or Y direction in the
> matplotlib API? that is, to plot something with values from positive to
> negative instead of the contrary?
just set the limits of your axes with xlim/ylim or set_yl
Joseph,
I'm a big fan of masked arrays in numpy. Your problem is typically what masked
days are for: you can find an example here:
http://www.scipy.org/Cookbook/Matplotlib/Plotting_values_with_masked_arrays
-
Take Surveys. Ea
On Sunday 16 July 2006 19:38, Webb Sprague wrote:
> I have data with missing values represented by nans (like array([1.0,
> nan, 3.0]) that I am plotting with pylab.semilogy().
Please transform your array in a MaskedArray.
import numpy as N
masked_x=N.ma.masked_where(N.isnan(x),x)
That should do
> There is an easier way, however.
That's what I like in matplotlib: no matter how hard you try, there's always a
simpler solution you're not yet aware of...
-
Using Tomcat but need to do more? Need to support web servic
On Friday 14 July 2006 11:25, Richard Albright wrote:
> from pylab import *
> x=(1,2,3,4,5)
> y=(13, 22,19,26,32)
> set_major_locator(NullLocator())
> set_major_formatter(NullFormatter())
> semilogy(x,y)
> show()
Have you tried that ?
gca().yaxis.set_minor_locator(NullLocator())
Or maybe I don't
On Thursday 13 July 2006 14:05, Asheesh Laroia wrote:
> I'm making a bar chart that shows percentages (values from 0 to 100), and
> I'd like to have the actual bars labeled with their values.
>
> I don't see how to do this, though it seems that countour diagrams have
> the clabel() function to do t
> > I suggest upgrading to 0.87.3.
>
> However, I still do see no working Gentoo ebuild. Is there any out there?
You can find one at http://bugs.gentoo.org/show_bug.cgi?id=136429
Problem is that you'd have to get the whole gentooscience overlay, so, here's
the matplotlib ebuild and the correspo
Darren,
> As of svn 2560, the label will render over the left or right y-axis
> depending on the position of the ticks.
Sweet ! Thanks a lot !
And following your advice, I came up with the following solution to my problem
(forcing the mantissa to multiple of 3, with a given number of decimals).
Folks,
I need your wisdom about ticks labels on ordinates for large numbers (>1e4).
The default behavior I have (0.87.4) is to display tick labels as "%.1f", and
write a string "x1e+..." above the top left corner of the current axes.
- When using "yaxis.tick_right()", the "x1e..." string stays a
Jules,
>
> ff = P.Figure(figsize=(5,4), dpi=100)
> ss = P.subplot(222)
> pp = ss.plot(x,y,'.-')
>
> # some program resets x,y limits
> P.show()
> #-
> Is there any way to
> - find the axes objects that count "ff" as their parent?
The `figure` associated with a subplot object `ss` is `ss.figur
Nils,
That's far more a Latex question than a matplotlib one.
Short answer: you can't fix the BBox from a JPEG, there's none !
>From what I remmbr from my LaTeX years, you need to transform the jpeg to a
format LaTeX can understand, viz '.ps' or '.eps'
Check
http://www2.eng.cam.ac.uk/~pmg26/hpage
John
> Well, we could keep it simple and just give a hook to custom figures.
> If a user wants a custom subplot
>
> class MyFigure(Figure):
>def add_my_subplot(self, *args, **kwargs):
> self.axes.append(MySubplot(*args, **kwargs))
>
> Is there any downside to this approach? It seems l
John
> I modified pylab (and every backend, damn there are a lot) to support
> this feature.
Wow, impressive ! Thx a lot
> Now you can pass a FigureClass kwarg to the pylab
> figure function. With minimal extra work, we could support defaults
> so you don't have to explicitly pass it. But b
28 matches
Mail list logo