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
(17) |
2
(3) |
3
(2) |
4
(11) |
5
(8) |
6
(22) |
7
(16) |
8
(9) |
9
(14) |
10
(1) |
11
(8) |
12
(5) |
13
(7) |
14
(10) |
15
(28) |
16
(8) |
17
(20) |
18
(6) |
19
(5) |
20
(15) |
21
(8) |
22
(7) |
23
(14) |
24
(10) |
25
(6) |
26
(8) |
27
(9) |
28
(11) |
29
(13) |
30
(20) |
|
Hello everyone, I want to use matplotlib to create a figure like the one seen in panel E of this linked image: http://www.iovs.org/content/49/12/5425/F1.large.jpg There are eight 2-D plots shown. All of them display the same two variables, CD4 on the X-axis and CD3 on the Y-axis. Rather than label each axis separately, the panel shows single axis labels in the horizontal and vertical directions, outside of the eight plots. This reduces clutter and saves space. I figured out how to place text, using e.g.: fig = Figure() external_label = fig.text(x, y, "insert desired text here") ...and then for the Y-axis label, external_ylabel.set_rotation(90) Now I would like to add the axis lines and arrows. In fact, I would prefer a FancyArrow object. I can see how to add non-text objects to an Axes, e.g.: ax = fig.add_subplot(111) ax.add_patch(my_arrow) But that isn't my goal here. I want to add lines to the FIGURE, outside of any Axes. Does anyone know how to accomplish this? Thanks!
Hi folks, I am pleased to announce a new release of glumpy, a small python library for the (very) fast vizualization of numpy arrays, (mainly two dimensional) that has been designed with efficiency in mind. If you want to draw nice figures for inclusion in a scientific article, you’d better use matplotlib but if you want to have a sense of what’s going on in your simulation while it is running, then maybe glumpy can help you. Download and screenshots at: http://code.google.com/p/glumpy/ Nicolas
Yes, it is possible. Everything that is possible in the pyplot interface is available in the API (the pyplot interface is a thin wrapper). Most plotting methods from pyplot like plot, semilogx, imshow, scatter, etc, are axes instances ax = fig.add_subplot(111) ax.imshow(...) and the title, xlabel, ylabel, etc, have associated "set_*" methods. ax.set_xlabel('some labe'). All of the examples in the API directory follow this pattern http://matplotlib.sourceforge.net/examples/api/index.html and you may want to take a look at the artist tutorial for a deeper understanding http://matplotlib.sourceforge.net/users/artists.html On Fri, Sep 16, 2011 at 8:44 AM, Keith Hughitt <kei...@gm...> wrote: > Is it not possible to use imshow() in a Qt application then? >
Hi, In the following script, it seems to me, that GridSpec does not work as expected. ---------------------------------------- #!/usr/bin/env python # vim: set fileencoding=utf-8 : # adapted from http://matplotlib.sourceforge.net/users/gridspec.html import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec fig = plt.figure() gs1 = GridSpec(3,3) gs1.update( left=0.10, right=0.45 ) ax1 = fig.add_subplot( gs1[ 0:1, 0:1 ] ) ax1.set_position( [0.1, 0.1, 0.2, 0.8] ) gs2 = GridSpec(3,3) gs2.update( left=0.55, right=0.95 ) ax2 = fig.add_subplot( gs2[ 1:3, 1:3 ] ) ax2.set_position( [0.5, 0.1, 0.2, 0.8] ) plt.show() ---------------------------------------- First I put an Axes ax1 with gs1. For some reason, I want to adjust ax1 with ax1.set_position. (In the real application only fine adjust) If I run the script only to this point it works as expected. Next I put another Axes ax2 with a new GridSpec gs2. With the command gs2.update() the Axes ax1 will be put back to the place where it would be without ax1.set_position(). Is this behavior to be explained? Thanks -- Kurt Mueller
On Fri, Sep 16, 2011 at 9:44 AM, Keith Hughitt <kei...@gm...> wrote: > Is it not possible to use imshow() in a Qt application then? http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.imshow
Is it not possible to use imshow() in a Qt application then?
Thanks for reporting this. This is now fixed in the v1.0.x-maint branch and in the master branch. Regards, -JJ On Fri, Sep 16, 2011 at 9:43 AM, Daniel Hyams <dh...@gm...> wrote: > There seems to be a problem with the draggable annotation code when > the annotation is just clicked, and not dragged. If you run the > following code: > > import matplotlib.pyplot as plt > fig = plt.figure() > ax = fig.add_subplot(111) > ann = ax.annotate('local max', xy=(2, 1), xytext=(3, > 1.5),arrowprops=dict(facecolor='black', shrink=0.05)) > ann.draggable() > ax.set_ylim(-2,2) > ax.set_xlim(0,5) > plt.show() > > And click (just a single click) the annotation (the words "local > max"), then resize your window a little to force a redraw. The > annotation flips to the bottom left corner. > > The fix is in offsetbox.py, DraggableAnnotation.save_offset. If you > add a call to update_offset() as the last call of that routine, > everything is OK again. I think that finalize_offset is assuming that > self.annotation.text is in pixels before it starts working with it, > but when update_offset fails to get called (as the case with a click), > self.annotation.xytext is still in axes fraction coordinates. > > def save_offset(self): > ann = self.annotation > x, y = ann.xytext > if isinstance(ann.textcoords, tuple): > xcoord, ycoord = ann.textcoords > x1, y1 = ann._get_xy(self.canvas.renderer, x, y, xcoord) > x2, y2 = ann._get_xy(self.canvas.renderer, x, y, ycoord) > ox0, oy0 = x1, y2 > else: > ox0, oy0 = ann._get_xy(self.canvas.renderer, x, y, ann.textcoords) > > self.ox, self.oy = ox0, oy0 > self.annotation.textcoords = "figure pixels" > self.update_offset(0.0,0.0) # <----------- add this! > > > It might be sufficient to just set self.annotation.xytext to > self.ox,self.oy instead of calling update_offset like I did above. > > > -- > Daniel Hyams > dh...@gm... > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
There seems to be a problem with the draggable annotation code when the annotation is just clicked, and not dragged. If you run the following code: import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ann = ax.annotate('local max', xy=(2, 1), xytext=(3, 1.5),arrowprops=dict(facecolor='black', shrink=0.05)) ann.draggable() ax.set_ylim(-2,2) ax.set_xlim(0,5) plt.show() And click (just a single click) the annotation (the words "local max"), then resize your window a little to force a redraw. The annotation flips to the bottom left corner. The fix is in offsetbox.py, DraggableAnnotation.save_offset. If you add a call to update_offset() as the last call of that routine, everything is OK again. I think that finalize_offset is assuming that self.annotation.text is in pixels before it starts working with it, but when update_offset fails to get called (as the case with a click), self.annotation.xytext is still in axes fraction coordinates. def save_offset(self): ann = self.annotation x, y = ann.xytext if isinstance(ann.textcoords, tuple): xcoord, ycoord = ann.textcoords x1, y1 = ann._get_xy(self.canvas.renderer, x, y, xcoord) x2, y2 = ann._get_xy(self.canvas.renderer, x, y, ycoord) ox0, oy0 = x1, y2 else: ox0, oy0 = ann._get_xy(self.canvas.renderer, x, y, ann.textcoords) self.ox, self.oy = ox0, oy0 self.annotation.textcoords = "figure pixels" self.update_offset(0.0,0.0) # <----------- add this! It might be sufficient to just set self.annotation.xytext to self.ox,self.oy instead of calling update_offset like I did above. -- Daniel Hyams dh...@gm...