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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
---
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
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
17 matches
Mail list logo