Re: [Matplotlib-users] barchart: center xticklabels for only one data set

2009-03-07 Thread Jae-Joon Lee
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar use ax.set_xticks(ind+width*.5) instead of ax.set_xticks(ind+width) -JJ On Thu, Mar 5, 2009 at 1:40 PM, Timmie timmichel...@gmx-topmail.de wrote: Hello, I tried to modify the bar chart demo for my case. I

[Matplotlib-users] figlegend: doesn't display markers

2009-03-07 Thread Erik Granstedt
Hello, I found an issue in working with subplots and using figlegend: it doesn't display markers. This code illustrates the problem: x=r_[0.:11.:1.] y=x**1.5 figure() subplot(211) line=plot(x,y,'sb-.') figlegend( (line,),('y',),'right' ) Supplying the numpoints keyword to figlegend doesn't

[Matplotlib-users] figlegend: ensure it fits in the figure

2009-03-07 Thread Erik Granstedt
Hello, I am generating a figure with 4 subplots, then using the figlegend command to generate a legend on the right side of the four plots. This is part of a script designed to handle varrying numbers of lines to be plotted, so sometimes the legend has many entries and sometimes it has a few. Is

Re: [Matplotlib-users] figlegend: doesn't display markers

2009-03-07 Thread Jae-Joon Lee
Your code works fine for me with mpl 0.98.5.2. What version of mpl are you using? print matplotlib.__version__ -JJ On Thu, Mar 5, 2009 at 12:03 PM, Erik Granstedt egranst...@gmail.com wrote: Hello, I found an issue in working with subplots and using figlegend: it doesn't display markers.  

Re: [Matplotlib-users] how to make scatter plot and bar graphs in same figure?

2009-03-07 Thread per freem
thank you very much for this (i include your code below). one question about this: how can i remove the top x-axis and the right yaxis from each of the marginal histograms? in other words, keep only the left y-axis and the bottom x-axis of each of the histograms. thank you. mport numpy as np

Re: [Matplotlib-users] plotting air pressure data with contour() function

2009-03-07 Thread Jeff Whitaker
Pablo Romero wrote: Jeff, Here's a link to the website that's creating the basemap plots with the H's and L's: http://magicseaweed.com/msw-surf-charts2.php?chart=64res=750type=pressurestarttime= As you can see, this website's pressure chart interface is based on creating individual

[Matplotlib-users] making scatter plots with histograms with equal axes (scatter_hist.py)

2009-03-07 Thread per freem
hi all, i am trying to make scatter plots with marginal histograms shown in the same plot, using the recently checked in example 'scatter_hist.py'. i want the scatter plot to have an equal aspect ratio, but when i do this, the scales of the marginal histograms get out of sync. for example, the

Re: [Matplotlib-users] Check if figure exists

2009-03-07 Thread Eric Firing
Christopher Brown wrote: Hi, If I have a figure: h = pp.figure(num=14) What is the best way to check to see if Figure 14 exists? I'm writing a function that adds plots to a figure window. I want the function to check if the figure exists, and if so, turn off autoscaling (using