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 j

[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 the

[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 mpl_toolk

Re: [Matplotlib-users] rotating markers

2010-11-10 Thread Christian Meesters
help. It would have 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 > wrote: > Hi, > > Honestly

[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 \blackl

[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 (e.

[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) Develop

[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 BlackBer

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 > wrote: > > Hi, > > &g

[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 mpl.rcParams['font.family']

[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, multial

[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'

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, Je

[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 su

Re: [Matplotlib-users] problem using LineCollection

2007-11-15 Thread Christian Meesters
Thanks John, > I think you misread the warning on hlines. Indeed. Problem solved. > This error typically arises when the CXX extension code is expecting a > sequence but getting something different. I can't reproduce it here, > but I am running mpl svn and not 0.90.1. Are you installing from src

[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 understand

[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 by:

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 li

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'

[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 t

[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 wit

[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 Adob

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

2006-10-13 Thread Christian Meesters
fies matters. > > Best regards, > Hanno > > Louis Pecora <[EMAIL PROTECTED]> said: > > Christian Meesters wrote: > > > Hi, > > > > > > No stupid question at all! I don't really understand your > > question, but it > > > > soun

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, H

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 r

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

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

2006-09-28 Thread Christian Meesters
> > I'm sure someone will soon provide you with an insightful answer. In > the meantime, you can fudge it by doing > > plot(x,y,'o',markerfacecolor='w') And this is not an "insightful answer"? Anyway, thanks a lot! Christian (who was to tired to look at the right place ...)

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

[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
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, Christi

[Matplotlib-users] eps file format

2006-09-28 Thread Christian Meesters
Hi, I'd like to write a paper with figures in eps format. Since the paper is for one of Elseviers journals the eps-figures have to meet the following requirements: - all colors have to be in the rgb color space - this seems to be true for the files I generate. - it should include a 8bit preview

Re: [Matplotlib-users] latex font manipulation

2006-09-14 Thread Christian Meesters
Please ignore me - first I tried combining all sorts of \bfs and \its, but a simple \emph does the work for now. Christian On Thursday 14 September 2006 11:35, Christian Meesters wrote: > Hoi, > > I'm trying to set a label in a plot in bold and italics. Is there some way > t

[Matplotlib-users] latex font manipulation

2006-09-14 Thread Christian Meesters
Hoi, I'm trying to set a label in a plot in bold and italics. Is there some way to achieve this in matplotlib? How would I need to modify the \?? part here: pylab.text(p[0],p[1],r'$\??{%s}$' % labels[i].replace(' ','\ '),fontsize=14) TIA Cheers Christian ---

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 quickly

[Matplotlib-users] problem with matplotlib Traceback in case latex fails

2006-09-05 Thread Christian Meesters
Hi In one somewhat bigger application of mine, which makes use of matplotlib, it can happen that a user can assign a name to a dataset, which latex in turn is unable to process as part of the legend. Of course it is possible to prevent the user from doing so in most cases, but still it is possi

[Matplotlib-users] packing an app with cx_Freeze

2006-08-14 Thread Christian Meesters
Hi, Yesterday I tried packing an application of mine which makes use of wxPython, scipy, and matplotlib with cx_Freeze. The Traceback I get after running FreezePython --install-dir SPlot_dir SPlot.py and starting the application is: Traceback (most recent call last): File "/home/cm/bin/inits

[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 was undeliverable. The reason for the problem: 5.1.0 - Unknown address erro

Re: [Matplotlib-users] legend outside of the plot

2006-08-07 Thread Christian Meesters
Hi, Thanks for all the ideas I got. I'll try them and see what's best / easiest for my problem. Thanks, Christian PS Sorry, I accidently send this to Richard only at first ... - Using Tomcat but need to do more? Need to su

[Matplotlib-users] legend outside of the plot

2006-08-04 Thread Christian Meesters
Hi, As far I understand this a plot is per default covering the more or less whole space. Now, is it possible to position a legend outside of a plot, e.g. on the right of the plot. "legend" offers to supply the loc-argument with a tuple to do that, but that doesn't create more space and hence m

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 the