You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(19) |
2
(3) |
3
(12) |
4
(2) |
|
5
|
6
(9) |
7
(27) |
8
(39) |
9
(17) |
10
(22) |
11
(5) |
|
12
(1) |
13
(11) |
14
(12) |
15
(14) |
16
(29) |
17
(32) |
18
(8) |
|
19
(3) |
20
(10) |
21
(27) |
22
(11) |
23
(8) |
24
(4) |
25
(4) |
|
26
(3) |
27
(18) |
28
(7) |
29
(29) |
30
(13) |
31
(4) |
|
|
From: John H. <jdh...@ac...> - 2006-03-14 16:30:21
|
>>>>> "Yogesh" == Yogesh Wadadekar <wad...@st...> writes:
Yogesh> Hi,
Yogesh> I encounter problems with the solution below. My test case
Yogesh> from yesterday was really not a 'test case' because both
Yogesh> images had near identical values. Thus, the auto vmin,vmax
Yogesh> settings were the same in both images.
I think the difference we are seeing may due to the fact that the norm
attributes are not set until the figure is drawn. So in a script with
interactive off, the vmin and vmax attrs are not updated from None to
their True values. You can fix this either by working in interactive
mode or by forcing a draw
from pylab import imshow, draw, rand, show
im = imshow(rand(10,10))
#draw()
print im.norm.vmin, im.norm.vmax
show()
Try the script above with draw commented and uncommented.
JDH
|
|
From: Yogesh W. <wad...@st...> - 2006-03-14 16:04:41
|
Hi, I encounter problems with the solution below. My test case from yesterday was really not a 'test case' because both images had near identical values. Thus, the auto vmin,vmax settings were the same in both images. The problem seems to be with the type of im.norm.vmin > In [3]: im = imshow(rand(20,20)) In [1]: im = imshow(rand(20,20)) > In [4]: im.norm.vmin > Out[4]: 0.001056874287314713 In [2]: im.norm.vmin In [3]: type(im.norm.vmin) Out[3]: <type 'NoneType'> > > In [5]: im.norm.vmax > Out[5]: 0.99817508459091187 In [4]: im.norm.vmax In [5]: type(im.norm.vmax) Out[5]: <type 'NoneType'> > > In [6]: newim = imshow(rand(30,30), vmin=im.norm.vmin, vmax=im.norm.vmax) In [7]: newim = imshow(rand(30,30), vmin=im.norm.vmin, vmax=im.norm.vmax) This works but im.norm.vmin and im.norm.vmax are not used! I am using matplotlib-0.87.1 and Python 2.3.4 on Fedora Core 3. Yogesh |
|
From: John H. <jdh...@ac...> - 2006-03-14 14:22:55
|
>>>>> "manouchk" == manouchk <man...@gm...> writes:
manouchk> Simply reverting Numpy from version 0.9.6 to version
manouchk> 0.9.4 solved the problem! Does someone understand
manouchk> something to that?
If you are building from source, you need to do a clean rebuild after
upgrading numpy
> cd matplotlib_src
> sudo rm -rf build
> sudo python setup.py install
If you still encounter problems after that, be sure to let us know.
JDH
|
|
From: manouchk <man...@gm...> - 2006-03-14 13:21:28
|
Simply reverting Numpy from version 0.9.6 to version 0.9.4 solved the probl=
em!=20
Does someone understand something to that?
Le Mardi 14 Mars 2006 10:19, manouchk a =E9crit=A0:
> Hi,
>
> I was usin matplotlib 0.86.2 and upgraded to 0.87.1 but it segfaults when
> launching simple_plot.py from 0.87 examples :
>
> python -v -i simple_plot.py
<
> it ends by :
> ...
> # /usr/lib/python2.4/site-packages/matplotlib/_transforms.pyc
> matches /usr/lib/python2.4/site-packages/matplotlib/_transforms.py
> import matplotlib._transforms # precompiled
> from /usr/lib/python2.4/site-packages/matplotlib/_transforms.pyc
> dlopen("/usr/lib/python2.4/site-packages/matplotlib/_ns_transforms.so", 2=
);
> Segmentation fault
>
>
> I don't understand the problem ? Is it a known problem of version of
> 0.87.1? Could I provide more specific informations?
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting langua=
ge
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: manouchk <man...@gm...> - 2006-03-14 13:10:31
|
Hi,
I was usin matplotlib 0.86.2 and upgraded to 0.87.1 but it segfaults when
launching simple_plot.py from 0.87 examples :
python -v -i simple_plot.py
it ends by :
...
# /usr/lib/python2.4/site-packages/matplotlib/_transforms.pyc
matches /usr/lib/python2.4/site-packages/matplotlib/_transforms.py
import matplotlib._transforms # precompiled
from /usr/lib/python2.4/site-packages/matplotlib/_transforms.pyc
dlopen("/usr/lib/python2.4/site-packages/matplotlib/_ns_transforms.so", 2);
Segmentation fault
I don't understand the problem ? Is it a known problem of version of 0.87.1?
Could I provide more specific informations?
|
|
From: Samuel M. S. <sm...@sa...> - 2006-03-14 00:42:23
|
How hard would it be to write a "shrinkwrap" function that resized the figure to fit the graphics plus a little bit a white space border. I find that I have to twiddle a lot to get the plots to fit nicely in the figure. In almost every case a shrink wrap function that resized the figure to exactly match the maximum extents of the plots plus legends plus labels plus a little bit of border would be just right. Is there a straightforward way to find out the max and min extent of everything in the figure? What I am thinking of, is that the initial figure size would be just a suggestion to bootstrap the plot sizes. Once all the plotting was done, one could call shrinkwrap and the figure would offset and shrink(expand) to just fit the contents (with a programmable amount of white space all around). ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** |
|
From: John H. <jdh...@ac...> - 2006-03-13 20:57:17
|
>>>>> "Michael" == Michael P Mossey <mo...@jp...> writes:
Michael> Is there any different between Subplots and Axes, other
Michael> than adding a subplot lets one use the matlab 3-digit
Michael> specification (e.g., 221 )?
Subplot inherits from Axes. It is the special case where your axes
like on a grid, eg 3 rows by 2 columns. An Axes is created by
defining the rectangle [left, bottom, width, height] that the Axes
occupies. Subplot simply computes these for you given the layout
you specify and the subplot parameters from the rc file. These
parameters govern things like the leftmost point of the subplots, or
the horizontal space between the rows.
Subplot also provides some helper functions like is_last_row which are
useful when creating lots-o-subplots in a loop, where you may want to
set the xlabel only for the last row
for i in range(9):
ax = subplot(3,3,i+1)
plot_something(i)
if ax.is_last_row():
ax.set_xlabel('time')
Other useful functions are is_first_col, is_first_row, is_last_col and
change_geometry.
See examples/axes_demo.py
http://matplotlib.sf.net/screenshots.html#axes_demo
for an example which uses both subplots and axes...
JDH
|
|
From: Michael P. M. <mo...@jp...> - 2006-03-13 20:46:05
|
Is there any different between Subplots and Axes, other than adding a subplot lets one use the matlab 3-digit specification (e.g., 221 )? Mike |
|
From: Francis P. <fp...@gm...> - 2006-03-13 19:49:03
|
Just a simple bar chart question. How do I display the values above each bar? |
|
From: John H. <jdh...@ac...> - 2006-03-13 19:35:05
|
locator = ax.xaxis.get_major_
^^^
cut and paste error -- should read
locator = ax.xaxis.get_major_locator()
JDH
|
|
From: John H. <jdh...@ac...> - 2006-03-13 19:32:39
|
>>>>> "Michael" == Michael P Mossey <mo...@jp...> writes:
Michael> Is there a way to autoscale just the x axis or just the y
Michael> axis? Mike
Sort of, kind of. But not automatically <wink>
Turn off autoscaling for the given axes, either
ax = subplot(111, autoscaleon=False)
or
ax.set_autoscaleon(False)
Then, supposing you want to use the autoscaling (locator)
functionality for the x-axis but not y, do
ax.set_ylim(somemin, somemax)
locator = ax.xaxis.get_major_
ax.set_xlim(locator.autoscale())
With a minimal amount of work we could have an autoscalex and
autoscaley property so that these could be controlled separately.c
JDH
|
|
From: Michael P. M. <mo...@jp...> - 2006-03-13 19:28:55
|
Is there a way to autoscale just the x axis or just the y axis? Mike |
|
From: Samuel M. S. <sm...@sa...> - 2006-03-13 17:59:06
|
I am using the SVN build of matplotlib last week.
I have included console dumps below.
The first is using pythonw the second using ipython
pythonw anim.py
loaded rc file /Users/smithsm/.matplotlib/matplotlibrc
matplotlib version 0.87.1
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 0.9.5.2006
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/matplotlib/mpl-data']
$HOME=/Users/smithsm
CONFIGDIR=/Users/smithsm/.matplotlib
loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache
matplotlib data path /Library/Frameworks/Python.framework/Versions/
2.4/lib/python2.4/site-packages/matplotlib/mpl-data
backend WXAgg version 2.6.2.1
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/backends/backend_wx.py", line
1048, in _onPaint
self.draw(repaint=False)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line
62, in draw
self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
Traceback (most recent call last):
File "anim.py", line 27, in ?
line, = plot(x,sin(x))
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/pylab.py", line 2127, in plot
b = ishold()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/pylab.py", line 967, in ishold
return gca().ishold()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/pylab.py", line 918, in gca
ax = gcf().gca(**kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/pylab.py", line 928, in gcf
return figure()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/pylab.py", line 898, in figure
draw_if_interactive()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/backends/backend_wx.py", line
1172, in draw_if_interactive
figManager.canvas.draw()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line
62, in draw
self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
***********************************************
ipython -pylab
loaded rc file /Users/smithsm/.matplotlib/matplotlibrc
matplotlib version 0.87.1
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 0.9.5.2006
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/matplotlib/mpl-data']
$HOME=/Users/smithsm
CONFIGDIR=/Users/smithsm/.matplotlib
loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache
matplotlib data path /Library/Frameworks/Python.framework/Versions/
2.4/lib/python2.4/site-packages/matplotlib/mpl-data
backend WXAgg version 2.6.2.1
Python 2.4.2 (#3, Jan 8 2006, 20:33:07)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.1.fix1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
Welcome to pylab, a matplotlib-based Python environment.
For more information, type 'help(pylab)'.
In [1]: plot([1,2,3])
------------------------------------------------------------------------
---
exceptions.MemoryError Traceback (most
recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap
(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
------------------------------------------------------------------------
---
exceptions.MemoryError Traceback (most
recent call last)
/Users/smithsm/<ipython console>
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/pylab.py in plot(*args, **kwargs)
2125 def plot(*args, **kwargs):
2126 # allow callers to override the hold state by passing
hold=True|False
-> 2127 b = ishold()
2128 h = popd(kwargs, 'hold', None)
2129 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/pylab.py in ishold()
965 Return the hold status of the current axes
966 """
--> 967 return gca().ishold()
968
969 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/pylab.py in gca(**kwargs)
916 """
917
--> 918 ax = gcf().gca(**kwargs)
919 return ax
920
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/pylab.py in gcf()
926 return figManager.canvas.figure
927 else:
--> 928 return figure()
929
930 def gci():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/pylab.py in figure(num, figsize, dpi, facecolor,
edgecolor, frameon)
896 figManager.canvas.figure.number = num
897
--> 898 draw_if_interactive()
899 return figManager.canvas.figure
900
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/IPython/genutils.py in wrapper(*args, **kw)
802 def wrapper(*args,**kw):
803 wrapper.called = False
--> 804 out = func(*args,**kw)
805 wrapper.called = True
806 return out
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wx.py in draw_if_interactive()
1170 figManager = Gcf.get_active()
1171 if figManager is not None:
-> 1172 figManager.canvas.draw()
1173
1174
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap
(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
In [2]:
------------------------------------------------------------------------
---
exceptions.MemoryError Traceback (most
recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap
(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
On 11 Mar, 2006, at 10:25, Ken McIvor wrote:
> On Mar 10, 2006, at 2:01 PM, Onsi Fakhouri wrote:
>> Ken, if you want me to try something let me know -- my guess is
>> I'm using a different version of either the AGG library or wx.
>
> I'm afraid that I'm at a loss right now. Knowing exactly what
> version of MacOS, Python, wxPython, and matplotlib you're using
> might help.
>
> If you have MacOS 10.4, Python 2.3, and wxPython 2.6.2.1, then you
> could see if you have the same problem with my build of matplotlib:
>
> http://agni.phys.iit.edu/~kmcivor/downloads/matplotlib-0.87.1-
> py2.3-macosx-10.4-ppc.egg
>
>> As an aside, does the cpp implementation run much faster than the
>> python implementation?
>
> You probably won't notice a difference unless you're doing
> animations. If you are, then it provides a big speedup under Linux
> but much less of a speedup on a Mac. I think the difference is due
> to the way wxWidgets is implemented on the two platforms.
>
> Ken
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the
> live webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: John H. <jdh...@ac...> - 2006-03-13 17:32:17
|
>>>>> "Yogesh" == Yogesh Wadadekar <wad...@st...> writes:
Yogesh> Hi,
Yogesh> I would like to do the following:
Yogesh> 1. Display an image using pylab.imshow. Works well and I
Yogesh> am happy with the v1,v2 values that are auto computed.
Yogesh> Next I need to:
Yogesh> 2. Display a second image using the EXACT v1,v2 values
Yogesh> that matplotlib determined for the first image.
Yogesh> I read through the documentation for
Yogesh> matplotlib.image.AxesImage that the fisrt imshow would
Yogesh> return, but could not determine exactly how to access the
Yogesh> v1,v2 values for that object.
You can access the vmin and vmax attributes from the image
normalization instance and pass them on to subsequent images
In [3]: im = imshow(rand(20,20))
In [4]: im.norm.vmin
Out[4]: 0.001056874287314713
In [5]: im.norm.vmax
Out[5]: 0.99817508459091187
In [6]: newim = imshow(rand(30,30), vmin=im.norm.vmin, vmax=im.norm.vmax)
FYI, imshow returns an image.AxesImage (which derives from
colors.ScalarMappable) and this contains a colors.normalize instance,
which has the attributes you are looking for. The clim command works
by setting the vmin and vmax attrs. More details are documented here:
http://matplotlib.sourceforge.net/matplotlib.image.html#AxesImage
http://matplotlib.sourceforge.net/matplotlib.cm.html#ScalarMappable
http://matplotlib.sourceforge.net/matplotlib.colors.html#normalize
JDH
|
|
From: Yogesh W. <wad...@st...> - 2006-03-13 17:04:32
|
Hi, I would like to do the following: 1. Display an image using pylab.imshow. Works well and I am happy with the v1,v2 values that are auto computed. Next I need to: 2. Display a second image using the EXACT v1,v2 values that matplotlib determined for the first image. I read through the documentation for matplotlib.image.AxesImage that the fisrt imshow would return, but could not determine exactly how to access the v1,v2 values for that object. Thanks in advance for your help. Yogesh Yogesh Wadadekar Tel: (410)338-4993 Space Telescope Science Institute e-mail: wad...@st... 3700 San Martin Drive Baltimore, MD 21218 |
|
From: Mitchell, G. \(Gary\) <gm...@ag...> - 2006-03-13 15:01:23
|
Last week I got this message several times.
This is a test to see if I still have this problem.
Your message did not reach some or all of the intended recipients.
Subject: FW: [Matplotlib-users] update to: I can not get
matplotlib to work on a windows xp professional machine
Sent: 3/8/2006 1:00 PM
The following recipient(s) could not be reached:
mat...@li... on 3/8/2006 1:04 PM
There was a SMTP communication problem with the recipient's
email server. Please contact your system administrator.
< -a #5.5.0 SMTP; 550 Don't like your HELO/EHLO. Hostname
must contain a dot.>
|
|
From: Fernando P. <Fer...@co...> - 2006-03-13 01:35:32
|
John Hunter wrote: >>>>>>"Marc" == Marc AHRENS <ma...@ph...> writes: > > Marc> NB The absence of an "app.MainLoop()" call at the end, since > Marc> I've called this from ipython, which is supposed to be > Marc> clever and automatically the wxPython main loop in another > Marc> thread automatically (I read this somewhere). I've tried > Marc> running multi-threaded stuff from the regular python shell, > Marc> but without success. > > ipython is only clever if you launch it in ipython -pylab for pylab > mode (which is not compatible with MPlot) or if launched in the > --wthread mode for wx threading. So you'll definitely need to do the > latter. I haven't had a lot of experience with --wthread; is it > correct that if you use wthread you should not use the explicit call > to Mainloop? No, in ipython -wthread we hijack Mainloop so that user calls to it actually call a dummy function. So it /should/ be OK for user scripts (as long as -wthread was given, or -pylab with a WX* backend) to call Mainloop. It will just call ipython's dummy replacement. See http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/IPython/Shell.py for details. Cheers, f |
|
From: Darren D. <dd...@co...> - 2006-03-12 00:40:55
|
I just made some changes to svn that I want to mention. Sometimes, usetex's
external dependencies could fail silently. Andrew suggested that the
subprocess module included in python-2.4 could be used to catch the exit
status and therefore report such problems. I added this module to mpl; tests
on both linux systems with python-2.3 and python-2.4 were successful. Now if
you pass give latex bad syntax, an exception is raised and you will see the
report from latex.
I also added a papertype kwarg for postscript. You can do something like
savefig('test.eps', papertype='letter')
or if you want the pagesize to scale automatically:
savefig('test.eps', papertype='auto')
Adding the papertype kwarg actually required a small change to every backend.
I tested my work with backend_driver, and no problems turned up. Please let
me know if you experience problems.
Finally, I got landscape orientation working properly with the usetex option.
This wasnt an easy task, and I'll leave out the gory details, but I will say
I've been pulling my hair out all weekend and my eyes are crossed.
Darren
|
|
From: Ken M. <mc...@ii...> - 2006-03-11 17:25:09
|
On Mar 10, 2006, at 2:01 PM, Onsi Fakhouri wrote: > Ken, if you want me to try something let me know -- my guess is I'm > using a different version of either the AGG library or wx. I'm afraid that I'm at a loss right now. Knowing exactly what version of MacOS, Python, wxPython, and matplotlib you're using might help. If you have MacOS 10.4, Python 2.3, and wxPython 2.6.2.1, then you could see if you have the same problem with my build of matplotlib: http://agni.phys.iit.edu/~kmcivor/downloads/matplotlib-0.87.1-py2.3- macosx-10.4-ppc.egg > As an aside, does the cpp implementation run much faster than the > python implementation? You probably won't notice a difference unless you're doing animations. If you are, then it provides a big speedup under Linux but much less of a speedup on a Mac. I think the difference is due to the way wxWidgets is implemented on the two platforms. Ken |
|
From: Ken M. <mc...@ii...> - 2006-03-11 16:49:08
|
On Mar 10, 2006, at 2:56 PM, Christopher Barker wrote: > This might have something to do with the fact that OS-X double > buffers it's windows, so you need to force and update event > somehow. A call to wx.Window.Refresh() and/or wx.Window.Update() > might do it. For `examples/anim.py', calling line.axes.figure.canvas.Update() after each call to pylab.draw() appears to do the trick. > Maybe OS-X waits for a Idle event to update the screen. The wxWidgets documentation for wxWindow::Refresh() and wxWindow::Update() indicates that the event loop is the default method for driving screen repaints. > What kind of app would you have running without an event loop anyway? Apparently, pylab scripts that try to animate plots by redrawing them run without an event loop. I could be mistaken, but I don't think the loop is started until you call pylab.show(). See `examples/ anim.py' for an example of what I'm talking about. > Id didn't think you could do much at all without one in wx. I didn't think so either but I hadn't considered pylab. Since a matplotlib example was the initial source of the problem, I think we should probably change things so that Update() gets called when necessary. My proposal is to tack the following (untested) lines to the end of backend_wx.FigureCanvasWx.gui_repaint(): # force a repaint if we think we're a pylab figure if isinstance(self.GetParent(), FigureFrameWx): self.Update() Ken |
|
From: Neil P. <mat...@ke...> - 2006-03-11 15:49:01
|
Chris Seberino wrote: > I made my plot PNGs transparent. For some reason this works > in Firefox but not in Internet Explorer. > > Anyone know why? There is a known problem with transparent PNGs in IE, one of the reasons that they haven't become as popular as you might have expected/hoped. This article gives some background, although this was just one search result I found :) http://www.pcmag.com/article2/0,1759,1645331,00.asp According to the article the problem appears where the palette size is not 256. Perhaps there is a workaround which could be used in the png output code? Or perhaps 256 colours is often not suitable - eg. antialiasing is used in output (requiring more colours)? -- Neil |
|
From: Christopher B. <Chr...@no...> - 2006-03-11 01:15:10
|
Robert Hetland wrote: > Indeed, I did not know about it. > > When I checked a while back, I did not notice any universal builds. It's very new, but has gotten a lot of discussion on the python-mac list. That's a very good list to subscribe to if your using Python on a Macintosh. > am pretty happy with my home rolled build. Are there any special > reasons to put python in the /Library/Frameworks directory? I imagine > there are, and I'm just not clued in enough to know why.. Honestly, I'm not that clued in to what exactly the advantage is a framework -- but I do know it's more than just where it happens to live. One advantage to the framework build is that you can use py2App to make a .app bundle of your program -- I don't know if it works with a standard unix-style build. By the way, you can build it yourself as a Framework with a flag like --enable-framework or something like that. The current goal of the macpython crowd is to establish a more or less "standard" build -- the universal framework build, and then we can populate pythonmac.org with pre-build extension packages for it. This will be a big help to folks (unlike yourself) that wouldn't dream of building python from source. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
|
From: Robert H. <he...@ta...> - 2006-03-11 00:22:40
|
On Mar 10, 2006, at 3:00 PM, Christopher Barker wrote: > Or did you not know about it? Indeed, I did not know about it. When I checked a while back, I did not notice any universal builds. I am pretty happy with my home rolled build. Are there any special reasons to put python in the /Library/Frameworks directory? I imagine there are, and I'm just not clued in enough to know why.. Thanks for the tip, -Rob. ----- Rob Hetland, Assistant Professor Dept of Oceanography, Texas A&M University p: 979-458-0096, f: 979-845-6331 e: he...@ta..., w: http://pong.tamu.edu |
|
From: Chris S. <seb...@sp...> - 2006-03-10 22:52:22
|
I made my plot PNGs transparent. For some reason this works in Firefox but not in Internet Explorer. Anyone know why? chris --=20 _______________________________________ Christian Seberino, Ph.D. SPAWAR Systems Center San Diego Code 2872 49258 Mills Street, Room 158 San Diego, CA 92152-5385 U.S.A. Phone: (619) 553-9973 Fax : (619) 553-0804 Email: seb...@sp... _______________________________________ |
|
From: Christopher B. <Chr...@no...> - 2006-03-10 21:00:38
|
Robert Hetland wrote: > and was > also recognized by my own install of python 2.4 (into /usr/local). Rob, Is there a reason you didn't try the new Universal Framework Build of Python 2.4.2? Or did you not know about it? I'd like to get as many packages as possible working with that. (and built and contributed to pythonmac.org) See this post from python-mac list: """ I've spent some time on an 10.3 box and updated the installer as a result of that. The universal python installer should now be complete, except for remaining bugs obviously. I have however not tested it on an Intel box yet. * The installer works on 10.3 and 10.4 * regrtest -uall passes on 10.3/ppc, 10.4/ppc * compiling extensions works on 10.3 * the existing (non-universal) wxPython installer installs fine and results in a working wxPython installation (on PPC only of course) on 10.3, which indicates that existing C++ extensions should work just fine with the universal build * IDLE works, including the local documentation * Profile updater works New from the previous release: * Locally installed documentation can be accessed from IDLE * Minor changes to the profile updater, and it is now also installed in /Application/MacPython 2.4 * Building extensions works on 10.3 * Various minor bugfixes There is one minor issue: the curses module doesn't work on OSX 10.3, the extension is linked to a version of libncurses that isn't available on 10.3. Please test this version and let me know of the results (both negative and positive). Unless major issues turn up we can do a golden release this weekend. That release will NOT have new icons, we can do a new release with updated icons later on. The installer is in the Public folder of my iDisk: http:// homepage.mac.com/ronaldoussoren/.Public/Universal%20MacPython% 202.4.2.dmg """ -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |