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
(7) |
2
(12) |
3
(7) |
4
(23) |
5
(5) |
6
(7) |
7
(4) |
|
8
(7) |
9
(25) |
10
(17) |
11
(25) |
12
(11) |
13
(8) |
14
(6) |
|
15
(1) |
16
(22) |
17
(11) |
18
(12) |
19
(22) |
20
(32) |
21
(9) |
|
22
(4) |
23
(16) |
24
(5) |
25
(9) |
26
(26) |
27
(21) |
28
(14) |
|
29
(6) |
30
(8) |
31
(4) |
|
|
|
|
|
From: Adam G. <am...@st...> - 2010-08-16 23:23:35
|
Could someone please kindly let me know if matplotlib is compatible with
Cygwin? I installed all the necessary dependencies, yet I cannot get
matplotlib to compile correctly. At the build step, this is what I get:
$ python setup.py build
basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
matplotlib: 1.0.0
python: 2.6.5 (r265:79063, Jun 12 2010, 17:07:01) [GCC
4.3.4 20090804 (release) 1]
platform: cygwin
REQUIRED DEPENDENCIES
numpy: 1.4.1
freetype2: found, but unknown version (no pkg-config)
* WARNING: Could not find 'freetype2' headers in any
* of '/usr/include', '.', '/usr/include/freetype2',
* './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
* Could not find 'libpng' headers in any of
* '/usr/include', '.'
cygwin warning:
MS-DOS style path detected: C:/Cygwin/usr/share/tcl8.4/tclConfig.sh
Preferred POSIX equivalent is: /usr/share/tcl8.4/tclConfig.sh
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Traceback (most recent call last):
File "setup.py", line 162, in <module>
if check_for_tk() or (options['build_tkagg'] is True):
File "/home/Adam/installs/matplotlib-1.0.0/setupext.py", line 816, in
check_for_tk
explanation = add_tk_flags(module)
File "/home/Adam/installs/matplotlib-1.0.0/setupext.py", line 1080, in
add_tk_flags
result = parse_tcl_config(tcl_lib_dir, tk_lib_dir)
File "/home/Adam/installs/matplotlib-1.0.0/setupext.py", line 938, in
parse_tcl_config
tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:]
IndexError: list index out of range
|
|
From: Graham T. <ess...@ho...> - 2010-08-16 22:20:41
|
I'm trying to display several rectangles (from matplotlib.patches) in 3D. I thought it would be possible to use the add_collection3d method similar to the demo on the examples page:http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html However, when I call this method on a PatchCollection, I get an error at line 295 in art3d.py.It expects the collection to have offsets, but offsets is None (by default) when I create the collection. /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mpl_toolkits/mplot3d/art3d.pyc in set_3d_properties(self, zs, zdir) 293 294 def set_3d_properties(self, zs, zdir):--> 295 xs, ys = zip(*self.get_offsets()) 296 self._offsets3d = juggle_axes(xs, ys, zs, zdir) 297 self._facecolor3d = self.get_facecolor() ValueError: need more than 0 values to unpack I am relatively new to Matplotlib, so I don't know if this is a bug or it is just my own misunderstanding. Here's a simple example where I try it on a single rectangle and it fails with the above error message. # ----start example from mpl_toolkits.mplot3d import Axes3Dfrom matplotlib.collections import PolyCollection,PatchCollectionfrom matplotlib.colors import colorConverterimport matplotlib.pyplot as pltfrom matplotlib.patches import Rectangleimport numpy as np fig = plt.figure()ax = fig.gca(projection='3d') rec = Rectangle((5,2),2,2)recs = [rec]col = PatchCollection(recs)ax.add_collection3d(col, zs=[0.6], zdir='z') # ----end example Graham |
|
From: Friedrich R. <fri...@gm...> - 2010-08-16 22:09:08
|
2010/8/13 Andrea Tomadin <gur...@me...>: > Dear John, > > thank you for your suggestion. Unfortunately, I have just tried that and I am positive that it does not work. > > It works only if the option "frameon" of the figure is True, which is not what I want in this case (I have to produce a pdf with transparent background). Indeed the code of draw() and resize() do something different. While draw() only blits to the tk image, resize() creates a new Tk image. I believe the bug is real and somewhere buried in tkagg. For now, you have three options: Wait until it's fixed in svn, or monkey-patch using the code of resize(). You can also pass in a dummy event to .resize() with two attributes, .width and .height, being the ['width'] and ['height'] of the drawing Tk Canvas object, i.e. of your .canvas._tkcanvas. Furthermore, does anyone know what the self.resize_event() call in .resize() is doing? I'm on 8626. Looks like a missed rename-and-back-up error to me. I don't want to checkout until I'm familiar with svn to not loose my changes. Friedrich. |
|
From: Benjamin R. <ben...@ou...> - 2010-08-16 20:49:21
|
On Mon, Aug 16, 2010 at 2:23 PM, Carlos Anderson <car...@ms...> wrote: > Ben, > > > > Thank you! I removed my current version of matplotlib, then downloaded the > source code for the newest version, compiled it, installed it, and now > everything works! I only had one error during compilation, which I fixed by > downloading and installing libfreetype6-dev. > > Glad to be of help, Carlos. Ben Root |
|
From: Michael D. <md...@st...> - 2010-08-16 19:02:55
|
On 08/16/2010 02:50 PM, Benjamin Root wrote: > Also, if you never compiled programs before on your system, you might > need to install using > synaptics some build packages. I think the link lists the > dependencies you need to have installed. As a shortcut, you can install all of the build dependencies for matplotlib using: > apt-get build-deps python-matplotlib Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
|
From: Benjamin R. <ben...@ou...> - 2010-08-16 18:51:25
|
On Mon, Aug 16, 2010 at 1:17 PM, Carlos Anderson <car...@ms...> wrote: > I have an older version of matplotlib (0.98.5.2), but when I do this: > > > > sudo apt-get install python-matplotlib > > > > it says "python-matplotlib is already the newest version" and it doesn't > download the latest version, which is 1.0.0. How can I get the latest > matplotlib version using apt-get? > > Carlos, apt-get uses your linux distribution's repository, which contains the package as they wish to make available. Typically, for any particular version of the OS, they will stick with a particular version of the package. If you need the latest version of any particular package that is not available by your distribution yet, you can install it yourself (taking care to remove the original package) from the source code. This can be a little tricky for newcomers, and you will have to be careful when you upgrade to the next version of your OS and try installing the new version from the package managers. To install from source, you might want to start here: http://matplotlib.sourceforge.net/users/installing.html#installing-from-source Also, if you never compiled programs before on your system, you might need to install using synaptics some build packages. I think the link lists the dependencies you need to have installed. I know it can be a little scary if you are a newcomer to linux, but don't be afraid to ask if you are confused by this. I hope this helps, Ben Root |
|
From: Carlos A. <car...@ms...> - 2010-08-16 18:34:54
|
I have an older version of matplotlib (0.98.5.2), but when I do this: sudo apt-get install python-matplotlib it says "python-matplotlib is already the newest version" and it doesn't download the latest version, which is 1.0.0. How can I get the latest matplotlib version using apt-get? |
|
From: Jeremy C. <jlc...@gm...> - 2010-08-16 18:17:55
|
On Sun, Aug 15, 2010 at 10:49 PM, Jae-Joon Lee <lee...@gm...> wrote: > On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin <jlc...@gm...> wrote: >> I have a problem with the scaling of the numbers on a colorbar. The >> problem occurs when the numbers used as colorbar labels need to be >> scaled (i.e. by 1E3). The colorbar correctly puts the scaling value >> on the top of the colorbar, but instead of of multiplying by a scale >> factor, addition is used instead. See the attached script and figure >> for example. In the example, it looks like the color scale goes from >> 0 to 2*5E3. At least, that's what I thought when I first looked at >> it. Instead it means 5000 to 5002. >> >> Is there anyway I can scale the colorbar labels by *multiplying* them >> by a scaling factor instead of *adding* a scaling factor? That seems >> more intuitive to me and those I work with. >> > > Given the value range of 5000-5002, I doubt how using the scaling > factor improve your plot. > > To disable the use of offset (+5000), > > cb = fig.colorbar(pc) > > # do not use offset > cb.formatter.set_useOffset(False) > > cb.update_ticks() > > If you do want to use scaling factor, > > # to use scaling factor > cb.formatter.set_scientific(True) > cb.formatter.set_powerlimits((0,0)) > > cb.update_ticks() > > This will only work with matplotlib v1.0. > In older versions, try to replace "update_ticks" with > "update_bruteforce" (but I'm not sure if this will work) > > IHTH, > Thanks for your suggestions. I recognize that a range of 5000–5002 is not much; it was used simply to illustrate my point. I was able to turn the scaling off with set_useOffset(False). Is there anyway to scale by multiplying instead of adding? Thanks, Jeremy |
|
From: Eric F. <ef...@ha...> - 2010-08-16 17:18:22
|
On 08/16/2010 06:44 AM, Toby Burnett wrote: > It is good to know that both issues have been recognized and addressed. > I searched the bug list and I guess failed to use the right keyword, or > just didn’t recognize the title. > > However, I am not in need of help, and certainly would not do a complete > reinstall, perhaps introducing new issues, when I now understand how to > work around both problems. Rather I thought that one of the purposes of > a user mailing list like this was to alert others, and to provide a > solution for them. (I spent a good 3 hours tracking it down.) In the > otherwise excellent documentation, I do not see an easy way to > understand what bugs have been found in a particular distribution, > especially the most recent. We do appreciate bug identification, and especially when it comes with an explanation of the bug source and a suggested fix. You are correct that this is a function of the mailing list. Bugs are reported in two ways: (1) on the mailing list, (2) on the sourceforge bug tracker. In addition, bugs are often identified by a developer, and then fixed without any report to the mailing list or the tracker. For the latter category, the only ways you can find out whether the bug has already been fixed are to search the latest CHANGELOG file and the list of commit messages, or--the definitive way--to install and test the latest svn version. Unfortunately, this is not feasible or desirable for everyone. For access to the CHANGELOG and to the commit messages (and to all the code and history, if you like), you can use the sourceforge site http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/ but I prefer my unofficial mercurial mirror: http://currents.soest.hawaii.edu/hgstage/hgwebdir.cgi/mpl_hg/ or Andrew's github mirror: http://github.com/astraw/matplotlib Eric > > --Toby Burnett > > *From:* ben...@gm... [mailto:ben...@gm...] *On Behalf Of > *Benjamin Root > *Sent:* Monday, August 16, 2010 07:46 > *To:* Toby Burnett > *Cc:* mat...@li... > *Subject:* Re: [Matplotlib-users] 1.1.0 changes: bug in > YAxis.set_ticks_position; new show() behavior > > On Sat, Aug 14, 2010 at 11:25 AM, Toby Burnett <tbu...@uw... > <mailto:tbu...@uw...>> wrote: > > YAxis: > The documentation (http://matplotlib.sourceforge.net/api/axis_api.html) > says: > > "Set the ticks position (left, right, both, default or none) 'both' sets > the ticks to appear on both positions, but does not change the tick > labels. 'default' resets the tick positions to the default: ticks on > both positions, labels at left. 'none' can be used if you don't want any > ticks. 'none' and 'both' affect only the ticks, not the labels." > > To test this: > > f=figure() > plot() > gca().xaxis.set_ticks_position('none') > gca().yaxis.set_ticks_position('none') > f.show() > > The y labels, on my 1.0.0 distribution, disappear, because of this line > of code: > > elif position == 'none': > self.set_tick_params(which='both', right=False, labelright=False, > left=False, labelleft=False) > the work-around is to execute that line without turning off the labels. > > > This bug was already found and patched in both the maintenance branch > and trunk (r8554 and r8555). > > ------------------------------------ > show() > > This may be an ipython problem, when running it with the -pylab > option, the show method now has a Tk.mainloop(), which blocks of > course. The work-around it to call the Figure.show() method instead, > as above. > > --Toby Burnett > University of Washington > > > There have been some recent fixes with Tk (I think) and its behavior > with regards to .show(). I believe the changes made it to the > maintenance branch as well. You might want to download the latest > tarball and install that to fix those problems. > > Ben Root > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Toby B. <tbu...@uw...> - 2010-08-16 16:45:09
|
It is good to know that both issues have been recognized and addressed. I searched the bug list and I guess failed to use the right keyword, or just didn't recognize the title. However, I am not in need of help, and certainly would not do a complete reinstall, perhaps introducing new issues, when I now understand how to work around both problems. Rather I thought that one of the purposes of a user mailing list like this was to alert others, and to provide a solution for them. (I spent a good 3 hours tracking it down.) In the otherwise excellent documentation, I do not see an easy way to understand what bugs have been found in a particular distribution, especially the most recent. --Toby Burnett From: ben...@gm... [mailto:ben...@gm...] On Behalf Of Benjamin Root Sent: Monday, August 16, 2010 07:46 To: Toby Burnett Cc: mat...@li... Subject: Re: [Matplotlib-users] 1.1.0 changes: bug in YAxis.set_ticks_position; new show() behavior On Sat, Aug 14, 2010 at 11:25 AM, Toby Burnett <tbu...@uw...<mailto:tbu...@uw...>> wrote: YAxis: The documentation (http://matplotlib.sourceforge.net/api/axis_api.html) says: "Set the ticks position (left, right, both, default or none) 'both' sets the ticks to appear on both positions, but does not change the tick labels. 'default' resets the tick positions to the default: ticks on both positions, labels at left. 'none' can be used if you don't want any ticks. 'none' and 'both' affect only the ticks, not the labels." To test this: f=figure() plot() gca().xaxis.set_ticks_position('none') gca().yaxis.set_ticks_position('none') f.show() The y labels, on my 1.0.0 distribution, disappear, because of this line of code: elif position == 'none': self.set_tick_params(which='both', right=False, labelright=False, left=False, labelleft=False) the work-around is to execute that line without turning off the labels. This bug was already found and patched in both the maintenance branch and trunk (r8554 and r8555). ------------------------------------ show() This may be an ipython problem, when running it with the -pylab option, the show method now has a Tk.mainloop(), which blocks of course. The work-around it to call the Figure.show() method instead, as above. --Toby Burnett University of Washington There have been some recent fixes with Tk (I think) and its behavior with regards to .show(). I believe the changes made it to the maintenance branch as well. You might want to download the latest tarball and install that to fix those problems. Ben Root |
|
From: Jae-Joon L. <lee...@gm...> - 2010-08-16 16:34:56
|
Those artist in offsetbox module (e.g., TextArea, VPacker,
AnchoredOffsetbox) are mostly a container object, i.e., actual drawing
is done by other artists. And changing the artist attributes of the
container object often does not work.
In your case (I guess you want to make the frame translucent?), the
actual artist responsible for drawing the frame is anchored_box.patch
(==art.patch). So
anchored_box.patch.set_alpha(0.5)
should work.
-JJ
On Tue, Aug 17, 2010 at 12:59 AM, Mathew Yeates <mat...@gm...> wrote:
> Hi
> I want my plot to be visible when I display some text over it. Why
> doesn't this work?
> fig = plt.figure(figsize=(5,5), dpi=100)
> ax=fig.add_axes([0.1,0.1,0.8,.8])
> ax.hist(data)
> box1 = TextArea("Minimum: %f" % mind, textprops=dict(color="k"))
> box2 = TextArea("Maximum: %f" % maxd, textprops=dict(color="k"))
> box = VPacker(children=[box1,box2],
> align="center",
> pad=0, sep=5)
> anchored_box = AnchoredOffsetbox(loc=3,
> child=box, pad=0.,
> frameon=True,
> bbox_to_anchor=(0.8, 0.72),
> bbox_transform=ax.transAxes,
> borderpad=0.,
> )
>
>
> art=ax.add_artist(anchored_box)
> art.set_alpha(0.5)
>
> -Mathew
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: David G. <d.l...@gm...> - 2010-08-16 16:26:18
|
And is NumPy 1.5 compat. confirmed yet? Thanks! DG -- Privacy is overrated; Identity isn't. |
|
From: Mathew Y. <mat...@gm...> - 2010-08-16 16:23:09
|
Thanks, Ben, but I figured out that I just needed to use
frameon=False. This way, I can see teh plot under the text.
Thx
On Mon, Aug 16, 2010 at 9:16 AM, Benjamin Root <ben...@ou...> wrote:
> On Mon, Aug 16, 2010 at 10:59 AM, Mathew Yeates <mat...@gm...>
> wrote:
>>
>> Hi
>> I want my plot to be visible when I display some text over it. Why
>> doesn't this work?
>> fig = plt.figure(figsize=(5,5), dpi=100)
>> ax=fig.add_axes([0.1,0.1,0.8,.8])
>> ax.hist(data)
>> box1 = TextArea("Minimum: %f" % mind, textprops=dict(color="k"))
>> box2 = TextArea("Maximum: %f" % maxd, textprops=dict(color="k"))
>> box = VPacker(children=[box1,box2],
>> align="center",
>> pad=0, sep=5)
>> anchored_box = AnchoredOffsetbox(loc=3,
>> child=box, pad=0.,
>> frameon=True,
>> bbox_to_anchor=(0.8, 0.72),
>> bbox_transform=ax.transAxes,
>> borderpad=0.,
>> )
>>
>>
>> art=ax.add_artist(anchored_box)
>> art.set_alpha(0.5)
>>
>> -Mathew
>>
>
> Mathew,
>
> Could you please include a completely self-contained version of the script
> for us to try out? Plus, which version of matplotlib are you using?
>
> Ben Root
>
>
|
|
From: Benjamin R. <ben...@ou...> - 2010-08-16 16:16:45
|
On Mon, Aug 16, 2010 at 10:59 AM, Mathew Yeates <mat...@gm...>wrote:
> Hi
> I want my plot to be visible when I display some text over it. Why
> doesn't this work?
> fig = plt.figure(figsize=(5,5), dpi=100)
> ax=fig.add_axes([0.1,0.1,0.8,.8])
> ax.hist(data)
> box1 = TextArea("Minimum: %f" % mind, textprops=dict(color="k"))
> box2 = TextArea("Maximum: %f" % maxd, textprops=dict(color="k"))
> box = VPacker(children=[box1,box2],
> align="center",
> pad=0, sep=5)
> anchored_box = AnchoredOffsetbox(loc=3,
> child=box, pad=0.,
> frameon=True,
> bbox_to_anchor=(0.8, 0.72),
> bbox_transform=ax.transAxes,
> borderpad=0.,
> )
>
>
> art=ax.add_artist(anchored_box)
> art.set_alpha(0.5)
>
> -Mathew
>
>
Mathew,
Could you please include a completely self-contained version of the script
for us to try out? Plus, which version of matplotlib are you using?
Ben Root
|
|
From: Mathew Y. <mat...@gm...> - 2010-08-16 15:59:46
|
Hi
I want my plot to be visible when I display some text over it. Why
doesn't this work?
fig = plt.figure(figsize=(5,5), dpi=100)
ax=fig.add_axes([0.1,0.1,0.8,.8])
ax.hist(data)
box1 = TextArea("Minimum: %f" % mind, textprops=dict(color="k"))
box2 = TextArea("Maximum: %f" % maxd, textprops=dict(color="k"))
box = VPacker(children=[box1,box2],
align="center",
pad=0, sep=5)
anchored_box = AnchoredOffsetbox(loc=3,
child=box, pad=0.,
frameon=True,
bbox_to_anchor=(0.8, 0.72),
bbox_transform=ax.transAxes,
borderpad=0.,
)
art=ax.add_artist(anchored_box)
art.set_alpha(0.5)
-Mathew
|
|
From: Christoph G. <cg...@uc...> - 2010-08-16 15:41:27
|
On 8/15/2010 2:06 PM, Paweł Roman wrote: > Hi, > > I have matplotlib 1.0 for python 2.5 (installed from > matplotlib-1.0.0.win32-py2.5.exe > <http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.win32-py2.5.exe/download>). > I'm using windows7 64 bit. When I try to import anything, e.g. > > from matplotlib.figure import Figure > > I'm getting this error: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 16, > in <module >> > import artist > File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 6, in > <module> > > from transforms import Bbox, IdentityTransform, TransformedBbox, > Transformed > Path > File "C:\Python25\Lib\site-packages\matplotlib\transforms.py", line > 34, in <mo > dule> > from matplotlib._path import affine_transform > ImportError: DLL load failed: The specified module could not be found. > > When I run this code in python interpreter, I get another clue: windows > (?) displays the following message in the popup window: The program > can't start because MSVCP71.dll is missing from your computer. Try > reinstalling the program to fix this problem. > > I have another computer with windows XP 32 bit and it works fine from > there. I know about other computer with 32 bit system where it also > works without problems. I've found a ticket in a bug tracker from 2008 > with identical error but no replies. I've downloaded this MSVCP71.dll > from the internet and put it in windows\system32 but it didnt help > (still the same error). Seems like the problem with 64 bit windows. But > is it only me? Can anyone help me with this? > > Thanks > > Paweł > Try to place MSVCP71.dll in C:\Windows\SysWOW64. Windows\system32 is for 64 bit files only on a 64 bit Windows OS. -- Christoph |
|
From: Jason G. <jas...@cr...> - 2010-08-16 15:29:02
|
On 8/16/10 5:36 AM, Michael Droettboom wrote: > For clarification: this change is related to "spines" not "splines". > Spines are the feature that allows the axes ticks to be plotted > somewhere in the middle of the plot, rather than always at the edges. > See here: > > http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html?highlight=spine%20codex > > Splines would refer to Bezier curves. See here: > > http://matplotlib.sourceforge.net/examples/pylab_examples/dolphin.html?highlight=dolphin%20codex > > Which feature are you interested in? > > That said, I'm not sure what the spine smart bounds work is about, but I > suspect Andrew Straw does. Sorry, I mistyped that: I meant "spines". We use spines to do the axes in Sage, and in updating the matplotlib package, I was wondering if we could take advantage of the "smart bound" feature. It certainly sounded interesting. Thanks, Jason -- Jason Grout |
|
From: Benjamin R. <ben...@ou...> - 2010-08-16 14:57:46
|
On Sat, Aug 14, 2010 at 11:25 AM, Toby Burnett <tbu...@uw...> wrote: > YAxis: > The documentation (http://matplotlib.sourceforge.net/api/axis_api.html) > says: > > "Set the ticks position (left, right, both, default or none) 'both' sets > the ticks to appear on both positions, but does not change the tick labels. > 'default' resets the tick positions to the default: ticks on both positions, > labels at left. 'none' can be used if you don't want any ticks. 'none' and > 'both' affect only the ticks, not the labels." > > To test this: > > f=figure() > plot() > gca().xaxis.set_ticks_position('none') > gca().yaxis.set_ticks_position('none') > f.show() > > The y labels, on my 1.0.0 distribution, disappear, because of this line of > code: > > elif position == 'none': > self.set_tick_params(which='both', right=False, > labelright=False, > left=False, labelleft=False) > the work-around is to execute that line without turning off the labels. > > This bug was already found and patched in both the maintenance branch and trunk (r8554 and r8555). > ------------------------------------ > show() > > This may be an ipython problem, when running it with the -pylab option, the > show method now has a Tk.mainloop(), which blocks of course. The work-around > it to call the Figure.show() method instead, as above. > > --Toby Burnett > University of Washington > > There have been some recent fixes with Tk (I think) and its behavior with regards to .show(). I believe the changes made it to the maintenance branch as well. You might want to download the latest tarball and install that to fix those problems. Ben Root |
|
From: Michael D. <md...@st...> - 2010-08-16 12:36:27
|
For clarification: this change is related to "spines" not "splines". Spines are the feature that allows the axes ticks to be plotted somewhere in the middle of the plot, rather than always at the edges. See here: http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html?highlight=spine%20codex Splines would refer to Bezier curves. See here: http://matplotlib.sourceforge.net/examples/pylab_examples/dolphin.html?highlight=dolphin%20codex Which feature are you interested in? That said, I'm not sure what the spine smart bounds work is about, but I suspect Andrew Straw does. Mike On 08/14/2010 11:22 AM, Jason Grout wrote: > Hi all, > > First: I noticed in the changelog to 1.0 that a lot of work has gone > into splines. Thanks! > > In particular, I notice commit message "splines and ticks: implement > smart bounds" from 20 Dec 2009 (commit > 58d31c10eef8648cd0fb81d5c0f0bcd0c05fe9a1 in astraw's github repository, > labeled as git-svn-id: > https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib@8048 > f61c4167-ca0d-0410-bb4a-bb21726e55ed). > > What are "smart bounds"? It looks desirable to do, but it defaults to > off, I think. > > Thanks, > > Jason > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
|
From: Jae-Joon L. <lee...@gm...> - 2010-08-16 05:39:59
|
On Thu, Aug 12, 2010 at 2:08 PM, Russell E. Owen <ro...@uw...> wrote: > So...can I convince the automatic sizer to always show the full X (time) > axis annotations and put all the variable sizing into the data area? Or > do I have to manually set them somehow? > Another option you may try is to use axes_grid1 toolkit. Attached is a simplified version of the script I have been using. matplotlib v1.0 is required. IHTH, -JJ |
|
From: Jae-Joon L. <lee...@gm...> - 2010-08-16 04:49:41
|
On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin <jlc...@gm...> wrote: > I have a problem with the scaling of the numbers on a colorbar. The > problem occurs when the numbers used as colorbar labels need to be > scaled (i.e. by 1E3). The colorbar correctly puts the scaling value > on the top of the colorbar, but instead of of multiplying by a scale > factor, addition is used instead. See the attached script and figure > for example. In the example, it looks like the color scale goes from > 0 to 2*5E3. At least, that's what I thought when I first looked at > it. Instead it means 5000 to 5002. > > Is there anyway I can scale the colorbar labels by *multiplying* them > by a scaling factor instead of *adding* a scaling factor? That seems > more intuitive to me and those I work with. > Given the value range of 5000-5002, I doubt how using the scaling factor improve your plot. To disable the use of offset (+5000), cb = fig.colorbar(pc) # do not use offset cb.formatter.set_useOffset(False) cb.update_ticks() If you do want to use scaling factor, # to use scaling factor cb.formatter.set_scientific(True) cb.formatter.set_powerlimits((0,0)) cb.update_ticks() This will only work with matplotlib v1.0. In older versions, try to replace "update_ticks" with "update_bruteforce" (but I'm not sure if this will work) IHTH, -JJ > Jeremy > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Craig L. <c.a...@gm...> - 2010-08-16 04:19:34
|
Hi all, I am using matplotlib to create a static graph from a few fairly large data sets. (Over 500,000 samples) I know you can pull out datasets of an axes by using the functions get_xdata() and get_ydata(), which leads me to wonder how matplotlib handles large data sets? Does it keep the entire data sets stored in memory? The application I am trying develop I hope to be able to run on low end PC's with little RAM. If data sets are indeed stored in RAM, is there a way to discard the plot data after a plot had been created to leave just a static image? Or, read and store data points directly from a file? Thanks for your help. Craig |