[Matplotlib-users] text height without ascender and descender

2011-03-28 Thread Lebostein
Is it possible to teach matplotlib to calculate text heights without ascender and descender? If I use a comma to print decimal values (german notation) it looks awful but the center of gravity is not the median. Matplotlib use the center of the full text height (included ascender and descender

Re: [Matplotlib-users] 3d Surface-Contour Plot

2011-03-28 Thread Nicolas Bigaouette
On Mon, Mar 14, 2011 at 9:05 AM, herbie13 g.h.herb...@dur.ac.uk wrote: Hello, I basically have a Chi-Squared distribution that is dependent on 3 variables. eg. X2(x, y, z) What I would like to do is be able to plot the chi-squared + 1 surface in 3-dimensions. eg. I would like to have

[Matplotlib-users] using matplotlib on a server

2011-03-28 Thread Paulo J. Matos
Hi, I am trying to use matplotlib on a server which I don't run without it installed. I tried untarring it to a folder in the path of PYTHONPATH and using it directly without any luck. Has anyone successfully installed matplotlib and its dependencies under a user account? Cheers, -- PMatos

[Matplotlib-users] matplotlib is slow

2011-03-28 Thread David Kremer
Hello everyone, I would like to draw the attention on the slow startup of matplotlib. Indeed, running matplotlib takes a long time. I performed the following sequence : ```bash #!/bin/bash for i in * ; do python2 -c from temp import * ; plot_(\${i}\) ; done ``` with temp.py like this :

Re: [Matplotlib-users] using matplotlib on a server

2011-03-28 Thread John Hunter
On Mon, Mar 28, 2011 at 8:19 AM, Paulo J. Matos pocma...@gmail.com wrote: Hi, I am trying to use matplotlib on a server which I don't run without it installed. I tried untarring it to a folder in the path of PYTHONPATH and using it directly without any luck. Has anyone successfully

Re: [Matplotlib-users] matplotlib is slow

2011-03-28 Thread Michael Droettboom
I would recommend running the import in the Python profiler to determine where most of the time is going. When I investigated this a few years back, it was mainly due to loading the GUI toolkits, which are understandably quite large. You can avoid most of that by using the Agg backend. If

Re: [Matplotlib-users] ramp shaped bars?

2011-03-28 Thread Michael Droettboom
Would you mind filing a bug for this in the issue tracker? https://github.com/matplotlib/matplotlib/issues Mike From: Jim Ford [jford14...@gmail.com] Sent: Friday, March 25, 2011 11:25 AM To: matplotlib-users@lists.sourceforge.net Subject: Re:

Re: [Matplotlib-users] usetex = True + eps output - letters are only curves

2011-03-28 Thread Michael Droettboom
Set the ps.fonttype to 42, which will embed the entire font. ps.fonttype = 3 (the default) subsets the font to only the characters used in the plot, and stores them as curves for maximum portability. Mike From: Lebostein [lebost...@gmx.de] Sent: Friday,

Re: [Matplotlib-users] matplotlib figures missing text

2011-03-28 Thread Michael Droettboom
It could be that matplotlib is not finding any fonts on your system for some reason. It would be useful to know whether any of the examples on the matplotlib website work for you, or it is something specific to your plot code. Do you have any non-default settings in your matplotlibrc? Mike

[Matplotlib-users] How to set the number of digits of the ticks?

2011-03-28 Thread MariaNN
Hello all I am tryint to plot the ticks in scientific notation, and I would like to set the tick size to 2 digits (i.e. 0.5 x e-7). Instead, I am either loosing the scientific notation or getting the scientific notation with a number of too many decimal positions. The problem is that my numbers

[Matplotlib-users] import error of affine_transform from matplotlib._path

2011-03-28 Thread ai1836
Hello there I am trying to put together matplotlib-1.0.1-win32-py2.6, numpy-1.5.1-win32-superpack-python2.6 and scipy-0.9.0rc1-win32-superpack-python2.6 for py2.6.6. When I run my file through eclipse I get this error: Traceback (most recent call last): File C:\Documents and Settings\Colby

Re: [Matplotlib-users] matplotlib.test() no errors, but $nosetest matplotlib.tests - errors and failure?

2011-03-28 Thread Paul Ivanov
Blast from the past! I just ran into this and it comes from the fact that 'matplotlib.tests.test_text' is not in the default_test_modules variable inside matplotlib's __init__.py Here's the necessary diff: index 82633a5..649e4d8 100644 --- a/lib/matplotlib/__init__.py +++

[Matplotlib-users] Polar grid below/behind the plot

2011-03-28 Thread Maximus00
Dear Forum, I want to send the polar grid lines (circles and radial lines) behind the plot. How can I do that? I tried other options but unable to do so. Here, I am taking matplotlib example. Please get back to me on this. Thanks!!! Example: polar_demo.py import matplotlib import numpy as np

[Matplotlib-users] Changing labels to time

2011-03-28 Thread Muffles
Hello all, i have certain dates that i want to use as the xlabels, i have looked around but found nothing i can use. I get the date from the netcdf file in a format something like a timestamp, like: 16216 that i turn into 04:30:16 I want to know how can i use this as a label. Thx in advance

[Matplotlib-users] get bboxes of bars in data coordinates

2011-03-28 Thread C M
I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle objects) on a bar plot for a custom autoscaling function. Right now, I get them like this, where rectObj = a bar and bboxes = a list of bboxes: bboxes.append(rectObj.get_path().get_extents()) print 'bboxes is: ', bboxes

Re: [Matplotlib-users] get bboxes of bars in data coordinates

2011-03-28 Thread C M
I should add, I can see that (I think) this needs to use a transform to get it in data coordinates, because if I do this to each rectObj (each bar): trans = rectObj.get_patch_transform() print 'trans is: ', trans I get: trans is: BboxTransformTo(Bbox(array([[ 734189.52541214, 730844.

[Matplotlib-users] Plot show() errors, Mac OS 10.6

2011-03-28 Thread Nate Gallagher
operating system $ uname -a Darwin nate-gallaghers-macbook-pro.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386 matplotlib version: matplotlib-1.0.1-python.org-32bit-py2.7-macosx10.3.dmg obtained from:

Re: [Matplotlib-users] get bboxes of bars in data coordinates

2011-03-28 Thread C M
On Mon, Mar 28, 2011 at 1:44 PM, C M cmpyt...@gmail.com wrote: I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle objects) on a bar plot for a custom autoscaling function. Right now, I get them like this, where rectObj = a bar and bboxes = a list of bboxes: