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
(4) |
2
(20) |
3
(8) |
4
(10) |
5
(4) |
6
(8) |
7
(4) |
8
(9) |
9
(11) |
10
(12) |
11
(13) |
12
(3) |
13
(17) |
14
(4) |
15
|
16
(10) |
17
(9) |
18
(11) |
19
(4) |
20
(17) |
21
(6) |
22
(9) |
23
(35) |
24
(17) |
25
(9) |
26
(16) |
27
(17) |
28
(14) |
Hi all, i just want to have a simple 2-bar histogram, and my problem is that i want my axis to be with NON-squared aspect, i.e. the y-axes automatically scaled (and this yet works this way),but the x-axis to be as long as it need to display 2 little bars. Instead i get a squared graph with 2 big bars. I also tried using something like "plt.axis([0,1,0,mymax*1.2])", changing the second value, but this affects the scale and NOT my picture aspect ratio. This is my simploe source: import numpy as np import matplotlib import matplotlib.pyplot as plt N = 1 ind = np.arange(N) width = 0.05 rects2 = plt.bar(ind+width, 100, width, color='g') rects1 = plt.bar(ind, 200, width, color='b') I tried many things, figsize, axis.. i have no idea, probably because i'm new to matplotlib programming Thank you very much for any help, my best
El sáb, 21-02-2009 a las 16:26 -0800, Daniel Soto escribió: > i'd like to plot some data, get user input, and then plot the original > data and user input. when i try to show() the data i get a segfault > after about ten seconds. > > any clue what i'm doing wrong? using mac os x 10.5 with enthought > distribution. > > thanks, > drs > > #!/usr/bin/env python > > import pylab > > x = pylab.arange(0,10,0.1) > y = pylab.sin(x) > > # plot and get user input, then close fig > pylab.plot(x,y) > points = pylab.ginput(2) > points = pylab.array(points) > pylab.close() > > # replot with chosen points > pylab.plot(x,y) > pylab.plot(points[:,0],points[:,1],'ko') > pylab.show() > # wait for it, wait for it...now segfault Your code works for me in Ubuntu 8.10, mpl 0.98.5.2 (Debian package!) and GTKAgg backend. Goyo
Hello all, I find that Matplotlib only have Python 2.5 build for Windows. Is there any plan to release a 2.6 build soon? I am trying to build it from source but I run into numerous problem. I am still struggling to find all dependent packages. It will help a lot if the 2.6 installer is available. Thanks, Wai Yip
Hi Eric, I'm using matplotlib 0.98 (which comes with the Enthought distribution) so that would explain why there was an issue. Thanks for your help! Thomas Eric Firing wrote: > Thomas Robitaille wrote: >> Hi Eric, >> >> Thanks for your help! Unfortunately, ax.set_autoscale_on(False) does >> not work - I had already tried this before unsuccessfully. Consider >> the following: >> >> from pylab import * >> import numpy as np >> >> def test(): >> fig = figure() >> ax = fig.add_subplot(111) >> a = np.zeros((100,100)) >> b = np.zeros((10,10)) >> ax.imshow(a) >> ax.set_autoscale_on(False) >> ax.contour(b) >> fig.canvas.draw() >> >> Running test() should result in a subplot with the view interval 0 to >> 99, but instead goes from 0 to 9. >> >> Is this normal? > > On my system, it does go from 0-99. What mpl version are you using? I > made the change to using autoscale_view in the ContourSet initializer, > which obeys the setting by set_autoscale_on, on November 17. Prior to > that, xlim and ylim were being set directly, so the workaround if you > have an earlier version would be to save those values (using > ax.get_xlim(), ax.get_ylim()) and then restore them with ax.set_xlim etc. > > Eric > >> >> Thanks, >> >> Thomas >> >> Eric Firing wrote: >>> Thomas Robitaille wrote: >>>> Hello, >>>> >>>> I am using matplotlib to show an image using: >>>> >>>> fig = figure() >>>> ax = fig.add_subplot(111) >>>> ax.imshow(image) >>>> >>>> After doing this, I want to find the contours for a different image >>>> (with different dimensions), but I do not want to interact with the >>>> current figure or axes, I just want to retrieve the set of >>>> LineCollection objects for the contours. The issue is that if I do >>>> >>>> c = contour(image2) >>>> >>>> the contours are stored inside c, but at the same time they are >>>> plotted in the current figure. If I use >>>> >>>> ax.contour(image2) >>>> >>>> then the contours are not plotted immediately, but the view interval >>>> has already been changed inside ax. >>> >>> The workaround for now may be to call ax.set_autoscale_on(False) before >>> your call to ax.contour. You could also save the datalim before and >>> restore them afterwards. >>> >>> This sort of request has come up before, though, and the longer-term >>> solution might be some refactoring in contour.py. As it is, everything >>> is done when the ContourSet is instantiated; one does not have the >>> option of simply calculating the contours, for example. >>> >>> Eric >>> >>>> >>>> So essentially, I am wondering if it is possible to retrieve a set of >>>> LineCollection objects without acting in any way on the current >>>> figure/axes. >>> >>>> >>>> Thanks for any help, >>>> >>>> Thomas >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> Francisco, CA >>>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>>> Enterprise >>>> -Strategies to boost innovation and cut costs with open source >>>> participation >>>> -Receive a 600ドル discount off the registration fee with the source >>>> code: SFAD >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >
Thomas Robitaille wrote: > Hi Eric, > > Thanks for your help! Unfortunately, ax.set_autoscale_on(False) does not > work - I had already tried this before unsuccessfully. Consider the > following: > > from pylab import * > import numpy as np > > def test(): > fig = figure() > ax = fig.add_subplot(111) > a = np.zeros((100,100)) > b = np.zeros((10,10)) > ax.imshow(a) > ax.set_autoscale_on(False) > ax.contour(b) > fig.canvas.draw() > > Running test() should result in a subplot with the view interval 0 to > 99, but instead goes from 0 to 9. > > Is this normal? On my system, it does go from 0-99. What mpl version are you using? I made the change to using autoscale_view in the ContourSet initializer, which obeys the setting by set_autoscale_on, on November 17. Prior to that, xlim and ylim were being set directly, so the workaround if you have an earlier version would be to save those values (using ax.get_xlim(), ax.get_ylim()) and then restore them with ax.set_xlim etc. Eric > > Thanks, > > Thomas > > Eric Firing wrote: >> Thomas Robitaille wrote: >>> Hello, >>> >>> I am using matplotlib to show an image using: >>> >>> fig = figure() >>> ax = fig.add_subplot(111) >>> ax.imshow(image) >>> >>> After doing this, I want to find the contours for a different image >>> (with different dimensions), but I do not want to interact with the >>> current figure or axes, I just want to retrieve the set of >>> LineCollection objects for the contours. The issue is that if I do >>> >>> c = contour(image2) >>> >>> the contours are stored inside c, but at the same time they are >>> plotted in the current figure. If I use >>> >>> ax.contour(image2) >>> >>> then the contours are not plotted immediately, but the view interval >>> has already been changed inside ax. >> >> The workaround for now may be to call ax.set_autoscale_on(False) before >> your call to ax.contour. You could also save the datalim before and >> restore them afterwards. >> >> This sort of request has come up before, though, and the longer-term >> solution might be some refactoring in contour.py. As it is, everything >> is done when the ContourSet is instantiated; one does not have the >> option of simply calculating the contours, for example. >> >> Eric >> >>> >>> So essentially, I am wondering if it is possible to retrieve a set of >>> LineCollection objects without acting in any way on the current >>> figure/axes. >> >>> >>> Thanks for any help, >>> >>> Thomas >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> -Strategies to boost innovation and cut costs with open source >>> participation >>> -Receive a 600ドル discount off the registration fee with the source >>> code: SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>
Hi all, i just want to have a simple bar-chart, and my problem is that i want it to be with NON-squared aspect, i.e. the x-axis to be as long as i need with 2 little bart. Instead i get a squared graph with 2 big bars even if i change width value. This is my source: import numpy as np import matplotlib import matplotlib.pyplot as plt N = 1 ind = np.arange(N) width = 0.05 rects2 = plt.bar(ind+width, 100, width, color='g') rects1 = plt.bar(ind, 200, width, color='b') I tried many things, figsize, axis.. i have no idea, probably because i'm new to matplotlib programming/ Thank you very much for any help, my best dp
Hi Eric, Thanks for your help! Unfortunately, ax.set_autoscale_on(False) does not work - I had already tried this before unsuccessfully. Consider the following: from pylab import * import numpy as np def test(): fig = figure() ax = fig.add_subplot(111) a = np.zeros((100,100)) b = np.zeros((10,10)) ax.imshow(a) ax.set_autoscale_on(False) ax.contour(b) fig.canvas.draw() Running test() should result in a subplot with the view interval 0 to 99, but instead goes from 0 to 9. Is this normal? Thanks, Thomas Eric Firing wrote: > Thomas Robitaille wrote: >> Hello, >> >> I am using matplotlib to show an image using: >> >> fig = figure() >> ax = fig.add_subplot(111) >> ax.imshow(image) >> >> After doing this, I want to find the contours for a different image >> (with different dimensions), but I do not want to interact with the >> current figure or axes, I just want to retrieve the set of >> LineCollection objects for the contours. The issue is that if I do >> >> c = contour(image2) >> >> the contours are stored inside c, but at the same time they are >> plotted in the current figure. If I use >> >> ax.contour(image2) >> >> then the contours are not plotted immediately, but the view interval >> has already been changed inside ax. > > The workaround for now may be to call ax.set_autoscale_on(False) before > your call to ax.contour. You could also save the datalim before and > restore them afterwards. > > This sort of request has come up before, though, and the longer-term > solution might be some refactoring in contour.py. As it is, everything > is done when the ContourSet is instantiated; one does not have the > option of simply calculating the contours, for example. > > Eric > >> >> So essentially, I am wondering if it is possible to retrieve a set of >> LineCollection objects without acting in any way on the current >> figure/axes. > >> >> Thanks for any help, >> >> Thomas >> >> ------------------------------------------------------------------------------ >> >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a 600ドル discount off the registration fee with the source >> code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
i'd like to plot some data, get user input, and then plot the original data and user input. when i try to show() the data i get a segfault after about ten seconds. any clue what i'm doing wrong? using mac os x 10.5 with enthought distribution. thanks, drs #!/usr/bin/env python import pylab x = pylab.arange(0,10,0.1) y = pylab.sin(x) # plot and get user input, then close fig pylab.plot(x,y) points = pylab.ginput(2) points = pylab.array(points) pylab.close() # replot with chosen points pylab.plot(x,y) pylab.plot(points[:,0],points[:,1],'ko') pylab.show() # wait for it, wait for it...now segfault
i'd like to plot some data, get user input, and then plot the original data and user input. when i try to show() the data i get a segfault after about ten seconds. any clue what i'm doing wrong? using mac os x 10.5 with enthought distribution. thanks, drs #!/usr/bin/env python import pylab x = pylab.arange(0,10,0.1) y = pylab.sin(x) # plot and get user input, then close fig pylab.plot(x,y) points = pylab.ginput(2) points = pylab.array(points) pylab.close() # replot with chosen points pylab.plot(x,y) pylab.plot(points[:,0],points[:,1],'ko') pylab.show() # wait for it, wait for it...now segfault