Re: [Matplotlib-users] Automatic resizing of colorbar

2009-12-14 Thread Jae-Joon Lee
Yes, axes location in mpl, by design, is specified in normalized figure coordinate. And, for the colorbar axes to match the height (or width) of the parent axes always , you need to manually update the location of the colorbar axes. There are a few ways to do this. You may use event callbacks, use

Re: [Matplotlib-users] Histogram without probability

2009-12-14 Thread Eric Firing
nbv4 wrote: > The histogram example in the matpolotlib gallery is just what I want, except > instead of "probility" shown on the Y-axis, I want the number of items that > fall into each bin to be plotted. How do I do this? Here is my code: > > import numpy as np > import matplotlib

Re: [Matplotlib-users] Histogram without probability

2009-12-14 Thread Ryan May
On Mon, Dec 14, 2009 at 7:22 PM, nbv4 wrote: > > The histogram example in the matpolotlib gallery is just what I want, except > instead of "probility" shown on the Y-axis, I want the number of items that > fall into each bin to be plotted. How do I do this? Here is my code: > >        import numpy

[Matplotlib-users] Histogram without probability

2009-12-14 Thread nbv4
The histogram example in the matpolotlib gallery is just what I want, except instead of "probility" shown on the Y-axis, I want the number of items that fall into each bin to be plotted. How do I do this? Here is my code: import numpy as np import matplotlib matplotlib.use

Re: [Matplotlib-users] first run works fine but on the second not

2009-12-14 Thread John Hunter
On Mon, Dec 14, 2009 at 12:38 PM, jenya56 wrote: > > I have the following in my PyScripter: > > import matplotlib > matplotlib.interactive(True) > from matplotlib.pylab import * > import pylab > > > if __name__ == '__main__': >   plot([1,2,3]) >   pylab.show() > #__main__ > > > For the first run i

Re: [Matplotlib-users] bluemarble is too dark

2009-12-14 Thread Jouni K . Seppänen
Jose Gomez-Dans writes: > I find this problem when generating a PDF and viewing it in Linux,but the > on-screen version seems to work fine. While the PDF format has advanced support for different color spaces and rendering intents, the current PDF backend just uses DeviceRGB and whatever the de

[Matplotlib-users] Automatic resizing of colorbar

2009-12-14 Thread Thomas Robitaille
Hi, I would like to plot a colorbar which automatically gets resized when I change the view limits and the aspect ratio of the main axes. So for example: import matplotlib.pyplot as mpl import numpy as np fig = mpl.figure() ax = fig.add_axes([0.1,0.1,0.7,0.8]) cax = fig.add_axes([0.81,0.1,0.

[Matplotlib-users] ANN: job opening at Tradelink

2009-12-14 Thread John Hunter
We are looking to hire a quantitative researcher to help research and develop trading ideas, and to develop and support infrastructure to put these trading strategies into production. We are looking for someone who is bright and curious with a quantitative background and a strong interest in writi

[Matplotlib-users] first run works fine but on the second not

2009-12-14 Thread jenya56
I have the following in my PyScripter: import matplotlib matplotlib.interactive(True) from matplotlib.pylab import * import pylab if __name__ == '__main__': plot([1,2,3]) pylab.show() #__main__ For the first run it works just fine and plots what expected. However, on the second run it j

Re: [Matplotlib-users] advaced scatter plot

2009-12-14 Thread Jose Gomez-Dans
Hi! 2009/12/14 jenya56 > > 1.) How to control the size of each circle on the scatter plot > Use the "s" option to scatter (units are points**2) > 2.) How to add the coast line with lambert projection? > You want to use the basemap extension. An example can be found in this blog: < http://stev

Re: [Matplotlib-users] advaced scatter plot

2009-12-14 Thread jenya56
The update: I was able to produce the plot with: fig = P.figure() ax = fig.add_subplot(1,1,1) cmap = P.matplotlib.cm.jet norm = P.matplotlib.colors.Normalsize(vmin=0,vmax=1) sc = ax.scatter(ave_lon,ave_lat,c=v,cmap=cmap,norm=norm) savefig('sg.png') However, I have a few quest

Re: [Matplotlib-users] advaced scatter plot

2009-12-14 Thread John Hunter
On Mon, Dec 14, 2009 at 11:31 AM, jenya56 wrote: > > Dear all, I was wondering if there is equivalent in python of this function: > PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot > at the locations specified in the vectors X and Y. The current colormap of > the figure

[Matplotlib-users] advaced scatter plot

2009-12-14 Thread jenya56
Dear all, I was wondering if there is equivalent in python of this function: PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot at the locations specified in the vectors X and Y. The current colormap of the figure is used for the color code. Any suggestions? Thanks. -- V

Re: [Matplotlib-users] Normalized histogram

2009-12-14 Thread John Hunter
On Mon, Dec 14, 2009 at 10:22 AM, Susanne Pfeifer wrote: > Hello, > > I am relatively new to matplotlib and I was wondering whether there is > an easy possibility to generate a histogram whose height is normalized > to one (rather than the total area under the curve which is the case if > I use no

[Matplotlib-users] Normalized histogram

2009-12-14 Thread Susanne Pfeifer
Hello, I am relatively new to matplotlib and I was wondering whether there is an easy possibility to generate a histogram whose height is normalized to one (rather than the total area under the curve which is the case if I use normed=1). Thank you for your help, Tiffy ---

Re: [Matplotlib-users] 3D semilog plot

2009-12-14 Thread Trevor Irons
Thanks, This almost does what I want. The labels are now changed to log notation, but the tick locations have remained the same. I want the spacing between each logarithmic decade to be equal. I just did an svn up and rebuild so I am working with bleeding edge matplotlib. Do I need to manually set

Re: [Matplotlib-users] bluemarble is too dark

2009-12-14 Thread Jose Gomez-Dans
Hi, 2009/12/14 Dr. Phillip M. Feldman > When I generate a map with a background generated via Basemap.bluemarble(), > the background is extremely dark. Is there any way to get a > lighter/brighter version? (I've looked at all of the available parameters, > but none of them seems to allow for a