Re: [Matplotlib-users] mpl_toolkits axes grid

2013-03-16 Thread Christian Meesters
Hi David and Ben and everybody reading along, Apparently I did not phrase my question too well. To clarify: I would like to have some 'subplots' with a width proportional to the amount of (equally spaced) data points. It seems to me that gridspec (http://matplotlib.org/users/gridspec.html) is

[Matplotlib-users] mpl_toolkits axes grid

2013-03-15 Thread Christian Meesters
Hi,It is quite some time ago since I was intensively using MPL. Perhaps I will not get the terminology right anymore. And now I hope to get some pointer for this particular problem:I would like to arange some line plots using a grid from left to right in a single plot / figure instance. Each of

[Matplotlib-users] state, plotting 3D? semilog axis possible?

2011-04-14 Thread Christian Meesters
Hi, I've lost touch with the state of mpl and starting to use it again. Apparently some of the gallery examples in 3D aren't working, but I think I found a workaround. However, is there a way to get 3D bar charts with semilog style (e.g. logarithmic x-axis?) Right now, I have: from

[Matplotlib-users] rotating markers

2010-11-10 Thread Christian Meesters
Hi, Honestly, I neglected my mpl skills lately, so I don't know whether docs on this topic are available, but I couldn't find them either. I would like to create a forest plot using horizontal errorbars. Currently my marker is simply 'kd' in pylab.errorbar, where 'd' is similar to LaTeX's

Re: [Matplotlib-users] rotating markers

2010-11-10 Thread Christian Meesters
been nice, but I can live without it. Christian I won't find the time to implement this. On Wed, 2010-11-10 at 09:18 -0600, Benjamin Root wrote: On Wed, Nov 10, 2010 at 7:44 AM, Christian Meesters meest...@imbie.uni-bonn.de wrote: Hi, Honestly, I neglected my mpl

[Matplotlib-users] differnet colormaps with pcolormesh

2009-11-11 Thread Christian Meesters
Hi, Is there a way to somehow squeeze two datasets with two different color maps into one pcolormesh? Say one dataset occupies one triangle (e. g. numpy.triu(dataset1, 1)) and the second dataset a different area (e. g. numpy.tril(dataset2, -1)) and then paste the two datasets in one pcolormesh

[Matplotlib-users] zap symbols

2009-10-21 Thread Christian Meesters
Hi, Does anyone provide a script / patch to create zap symbols (e.g. like http://home.gna.org/pychart/doc/module-coord.html#module-coord ) to break an axis? TIA Christian -- Come build with us! The BlackBerry(R)

Re: [Matplotlib-users] all fonts to sans-serif?

2009-10-18 Thread Christian Meesters
Thanks Darren, Then, I guess, the easiest solution is to either use to set all tick labels manually or to just use serif fonts ;-). Christian On Fri, 2009-10-16 at 09:57 -0400, Darren Dale wrote: On Thu, Oct 15, 2009 at 10:38 AM, Christian Meesters meest...@imbie.uni-bonn.de wrote: Hi

[Matplotlib-users] bar plot errorbars

2009-10-18 Thread Christian Meesters
Hi, Is there a way to have errorbars in a bar plot going in just one direction? E. g. like that - | +-+ | | instead of - | +-+ | | | - ? TIA Christian -- Come build with us! The

[Matplotlib-users] all fonts to sans-serif?

2009-10-15 Thread Christian Meesters
Hi, I'd like to have all sub-fonts (labels, tick labels, text) sans-serif for a series of plots per default. However the appropriate settings in .matplotlibrc apparently don't work and this also does not work: import matplotlib as mpl mpl.rcParams['text.usetex'] = True

[Matplotlib-users] plot of 2D array without masked values?

2009-09-21 Thread Christian Meesters
Hi, I'm plotting 2D-ndarrays with pylab.pcolor(). The data contain masked values and it can happen that entire rows or columns hold only masked values. Is there a build-in way to omitted such rows/columns? Currently I'm removing the labels in x and y and the row/columns by hand. TIA Christian

Re: [Matplotlib-users] pcolormesh - question

2009-09-06 Thread Christian Meesters
Hi, Let me reformulate my question: Is there a way to put ticklabels not beside, but between ticks (centered between)? TIA Christian On Fri, 2009-09-04 at 10:53 +0200, Christian Meesters wrote: Hi, I have the following code: pylab.pcolormesh(data, multialignment='center') xlocs

[Matplotlib-users] pcolormesh - question

2009-09-04 Thread Christian Meesters
Hi, I have the following code: pylab.pcolormesh(data, multialignment='center') xlocs, xlabels = pylab.xticks(range(0, data.shape[1]+1), xlabels) pylab.setp(xlabels, 'rotation', 70) pylab.colorbar() pylab.show() where data is a 2D numpy array containing some masked values and

Re: [Matplotlib-users] heatmap and masked values

2009-08-31 Thread Christian Meesters
Jeff, that's a good point. I remember ... On Thu, 2009-08-27 at 07:54 -0600, Jeff Whitaker wrote: Christian Meesters wrote: Christian: That should work, if you created the masked array correctly. Why are you creating the mask with data=='NA'? I suspect that this always evaluates

[Matplotlib-users] heatmap and masked values

2009-08-27 Thread Christian Meesters
Hi, I have a 2D masked array, created like: import numpy as np data = np.ma.array(data, mask=[data == 'NA']) which I would like to plot as a heatmap. import pylab pylab.pcolor(data) or pylab.pcolormesh(data) Well, it works with any array, but not if masked values are in there. Can somebody

Re: [Matplotlib-users] heatmap and masked values

2009-08-27 Thread Christian Meesters
Christian: That should work, if you created the masked array correctly. Why are you creating the mask with data=='NA'? I suspect that this always evaluates to False, so you don't get a mask. You probably want to check for a numeric value, not a string. For example: Thanks a lot, Jeff!

[Matplotlib-users] problem using LineCollection

2007-11-15 Thread Christian Meesters
Hi, Sorry, if this has been brought up before, but I missed a while reading the list. When I updated my system lately, I also installed the current version of mpl (0.90.1) and that gave me a DeprecationWarning that I should use LineCollection now to get my horizontal lines. Well, I didn't figure

[Matplotlib-users] error in cookbook concerning colorbars?

2007-09-11 Thread Christian Meesters
Hi, Am I right if I presume that line No. 4 in the second listing in http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps should read (0.5, 0.1, 0.7) in order to match the description? But then, of course the example plot would look different. I hesitate to change what I don't fully

Re: [Matplotlib-users] Fitting a curve

2007-08-31 Thread Christian Meesters
Hoi, There is still MPL's polyfit function and I have to admit that Steve Schmerler's solution looks better that mine, but I've pasted a quick dirty solution here: http://www.python-forum.de/topic-8363.html It shows the use of polyfit as well as (almost) Steve's approach. Further examples on

[Matplotlib-users] hatching background

2007-08-31 Thread Christian Meesters
Hi, is it somehow possible to have a hatch in parts of the background, which would achieve something like this pseudo-parameter to axvspan pylab.axvspan(2, 10, hatch='//')? TIA Christian - This SF.net email is sponsored

Re: [Matplotlib-users] Latex, Labels and PDF

2007-07-24 Thread Christian Meesters
Hoi Peter, $\rm{some label text} (\mu V)$ becomes somelabeltext\muV You could try r$\rm{some\ label\ text} (\mu V)$ instead. (Note the backslashes and the 'raw' r in front of the string.) This way the string should be interpreted fine. You can use the '\ ' to force a space, but whether it's

[Matplotlib-users] stretching letters in plots

2007-07-05 Thread Christian Meesters
Hi, Is there a way to stretch letters like in this example http://weblogo.berkeley.edu/examples.html using mpl? I don't exactly want to reproduce sequence logos, but I would like to 'scale' a letter arbitrarily in height, changing its color and keeping it's width fixed. I didn't see things like

[Matplotlib-users] plotting only some error bars

2007-01-05 Thread Christian Meesters
Hoi, For some plot I'd like to display a dotted line (style = 'k.-') with an error bar at only every 30th point or so. The error values in this case are scalars. Of course, I could produce a slice like mydata[::jumper] and plot these above the first plot, but this seems a bit akward. Anyone

[Matplotlib-users] display problem of eps files in Adobe Photoshop

2006-10-26 Thread Christian Meesters
Hi, I'm producing eps files using matplotlib (current version) on a linux box with SuSE 10.0. Whenever I view those files with a standard viewer on that machine or try to embed it in a latex document there is no problem. Now I've copied these files on a Windows machine and I opened them in

Re: [Matplotlib-users] plot x y value(x,y)

2006-10-13 Thread Christian Meesters
Hi, No stupid question at all! I don't really understand your question, but it sounds to me like a scatter plot is what you want. In that case, just have a look at the scatter plot demos on the web page (- screenshots) or in the example files. HTH Christian On Friday 13 October 2006 14:25,

Re: [Matplotlib-users] plot x y value(x,y)

2006-10-13 Thread Christian Meesters
are given and are not calculated. Christian's suggestion with a scatter plot works fine for me, but if there are other possibilities I'm always keen to learn something. Hope this clarifies matters. Best regards, Hanno Louis Pecora [EMAIL PROTECTED] said: Christian Meesters wrote: Hi

Re: [Matplotlib-users] eps file format

2006-10-09 Thread Christian Meesters
On Monday 02 October 2006 21:51, Mark Bakker wrote: What I don't understand is why we need previews at all? Is this because Microsoft software cannot display an eps file? Why not? Isn't that one of the easiest drivers to write? Are they not adding eps format out of spite? Mark Sorry for

Re: [Matplotlib-users] line styles with hollow circles?

2006-09-29 Thread Christian Meesters
On Friday 29 September 2006 07:50, Jouni K Seppanen wrote: Stefan van der Walt [EMAIL PROTECTED] writes: plot(x,y,'o',markerfacecolor='w') This makes circles filled with white. If you want circles that don't obscure whatever is behind them, use markerfacecolor=None. Jouni, Bill, thank you

Re: [Matplotlib-users] eps file format

2006-09-28 Thread Christian Meesters
Thanks, John and Alan, That was fast! As for the fonts, yes, you can control this with rc. Sure, but what about the latex rendered parts? (I wonder whether it actually matters, but I'd like to be sure, because there so little time left ...) On Thu, 28 Sep 2006, Christian Meesters apparently

[Matplotlib-users] line styles with hollow circles?

2006-09-28 Thread Christian Meesters
Hi, I'd like to plot experimental data points with fitted data through it. This time best would be to plot hollow circles for the experimental data. Pretty much like literal 'o's (except, of course, that passing 'o' results in thick circles). Is this possible somehow? TIA Christian

Re: [Matplotlib-users] eps file format

2006-09-28 Thread Christian Meesters
As for the preview header, I suspect there arte 3rd part tools that can do this (ImageMagick?). We should be able to do it ourself with agg, but it would require someone to dig in and figure out the spec. JDH One last remark on this: Since so many journals demand this, would it be worth a

Re: [Matplotlib-users] svn build cannot import

2006-09-08 Thread Christian Meesters
Hi, I you don't need to use svn, you might give this build a try: http://pythonmac.org/packages/py24-fat/index.html Christian - Using Tomcat but need to do more? Need to support web services, security? Get stuff done

[Matplotlib-users] list troubles

2006-08-07 Thread Christian Meesters
Hi, Sorry for posting to the list, but I had no clue who to address. Recently I had some troubles sending emails to the list, for they were bounced back with this delivery status notification: The following message to matplotlib-users@lists.sourceforge.net was undeliverable. The reason for

Re: [Matplotlib-users] pylab crashes simple wxPython script

2006-06-08 Thread Christian Meesters
On Thursday 08 June 2006 16:19, massimo sandal wrote: Brian Blais ha scritto: I want to write a wxPython script to pull up pylab plots (in a separate window), based on menu or button choices. The script below crashes with a segmentation fault. Am I doing something wrong here? Is there a