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
(30) |
3
(14) |
4
(1) |
|
5
(16) |
6
(7) |
7
(12) |
8
(14) |
9
(35) |
10
(16) |
11
(31) |
|
12
(6) |
13
(14) |
14
(13) |
15
(20) |
16
(15) |
17
(27) |
18
(5) |
|
19
(10) |
20
(22) |
21
(20) |
22
(30) |
23
(25) |
24
(11) |
25
(2) |
|
26
(2) |
27
(23) |
28
(20) |
29
(26) |
30
(25) |
31
(7) |
|
|
From: Doug P. <dar...@gm...> - 2009-07-07 23:41:29
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am using matplotlib in a django application and would like to render a
graph and return it directly.
Currently I have
plt.savefig("some/location.png")
working. But since the images I will be generating are only EVER needed
once, I would like to simply return the image directly through django
without needing to save it, then return an URI.
so instead of doing
plt.savefig("some/location.png")
return HttpResponse("<html><body><img src='some/location.png'
/></body></html>")
I could do
return HttpResponse(plt.image_render('image/png'), mimetype="image/png")
and not have to worry about deleting the image later (there are LOT that
get generated)
Any help would be greatly appreciated.
~Doug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpT3SAACgkQznigyIaDZ0VyPACgg0CoapaPTdLT1vGKKMK9En8O
gasAn1LV9F1ElT6vOOq/PCRzp7kkW+5s
=6oe8
-----END PGP SIGNATURE-----
|
|
From: Mauro C. <mau...@gm...> - 2009-07-07 23:37:20
|
Dear Jeff, Thanks for your fast reply. No problem with manually installing the Basemap data files -- indeed, this is just what I do intend in order to create a frozen application. But other than setting up the BASEMAPDATA environment variable, is there any way to tell an application to look for the data in a specific directory? Best regards, 2009/7/7 Jeff Whitaker <js...@fa...>: > Mauro Cavalcanti wrote: >> >> Dear Jeff & ALL, >> >> In trying to freeze my app using bb-freeze >> (http://pypi.python.org/pypi/bbfreeze/), I stumbled upon a problem: >> the app is correctly freezed, but it then looks for the Basemap >> datafiles and since cannot find them, fails to start (with a message >> complaining that the above mentioned files are missing). So, my >> question is: can Basemap data files be installed in a directory other >> than the default one? And if so, how to instruct a program to look for >> them in another location? >> >> Thanks in advance for any assistance you can provide. >> >> Best regards, >> >> > > Mauro: If you set the env var BASEMAPDATA, it will look for the basemap > data files there. There is no way supported way to install the files in a > different directory using setup.py, so if you want them somewhere other than > the default location you'll have to install them there manually. > > -Jeff > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : Jef...@no... > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > > -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Jeff W. <js...@fa...> - 2009-07-07 22:57:05
|
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > In trying to freeze my app using bb-freeze > (http://pypi.python.org/pypi/bbfreeze/), I stumbled upon a problem: > the app is correctly freezed, but it then looks for the Basemap > datafiles and since cannot find them, fails to start (with a message > complaining that the above mentioned files are missing). So, my > question is: can Basemap data files be installed in a directory other > than the default one? And if so, how to instruct a program to look for > them in another location? > > Thanks in advance for any assistance you can provide. > > Best regards, > > Mauro: If you set the env var BASEMAPDATA, it will look for the basemap data files there. There is no way supported way to install the files in a different directory using setup.py, so if you want them somewhere other than the default location you'll have to install them there manually. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
|
From: Ondrej C. <on...@ce...> - 2009-07-07 22:53:06
|
Hi Matthias! many thanks for the help, that was it. I will now remember to use show() only once and use other techniques to create something like show(), but that can be called multiple times. Thanks, Ondrej On Tue, Jul 7, 2009 at 5:35 AM, Matthias Michler<Mat...@gm...> wrote: > Hi Ondrej, > > I'm not sure where to find a good explanation of that, but let me give you > some hints. It is intended to use show only once per program. Namely 'show' > should be the last line in your script. If you want interactive plotting you > may consider interactive mode (pyplot.ion-ioff) like in the example below. > > Furthermore for dynamic plotting all animation demos might be useful. > > Maybe you want to have also a look at > http://matplotlib.sourceforge.net/users/shell.html . > > best regards Matthias > > #################### > from pylab import * > > t = linspace(0.0, pi, 100) > x = cos(t) > y = sin(t) > > ion() # turn on interactive mode > figure(0) > subplot(111, autoscale_on=False, xlim=(-1.2, 1.2), ylim=(-.2, 1.2)) > > point = plot([x[0]], [y[0]], marker='o', mfc='r', ms=3) > > for j in arange(len(t)): > # reset x/y-data of point > setp(point[0], data=(x[j], y[j])) > draw() # redraw current figure > > ioff() # turn off interactive mode > show() > ################ > > On Monday 06 July 2009 08:13:37 Ondrej Certik wrote: >> On Tue, Jun 30, 2009 at 12:09 PM, Ondrej Certik<on...@ce...> wrote: >> > Hi, >> > >> > this must have been answered many times already, but I searched the >> > archives, online docs, but couldn't find anything. >> > >> > If I do: >> > >> > $ python >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) >> > [GCC 4.3.3] on linux2 >> > Type "help", "copyright", "credits" or "license" for more information. >> > >> >>>> import pylab >> >>>> pylab.plot([1, 3, 3]) >> > >> > [<matplotlib.lines.Line2D object at 0x2154350>] >> > >> >>>> pylab.show() >> >>>> pylab.show() >> > >> > the first pylab.show() shows the plot and stays hanging (this is ok) >> > and then if I close it, to get back to the shell, the second call to >> > show() does nothing. >> > >> > One fix is to use: >> > >> > ipython --pylab >> > >> > but if I just want to call regular python, or from my own script --- >> > how do I plot for the second time? >> >> I still haven't figured out how to fix it, so any feedback would be >> appreciated. >> >> Thanks, >> Ondrej > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/blackberry > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Pau <vim...@go...> - 2009-07-07 22:21:39
|
Hello, two days ago Sebastian helped me to finish in a hurry a histogram with bar() I would like now to understand how to make the plot with hist() First of all, my data (after a massage) looks like : ----------------------------------------- 0.00e+00 1.00e-04 81039 1.00e-04 2.00e-04 4472 2.00e-04 3.00e-04 2033 3.00e-04 4.00e-04 1155 4.00e-04 5.00e-04 823 5.00e-04 6.00e-04 643 6.00e-04 7.00e-04 534 7.00e-04 8.00e-04 361 8.00e-04 9.00e-04 313 9.00e-04 1.00e-03 269 1.00e-03 1.10e-03 230 1.10e-03 1.20e-03 195 1.20e-03 1.30e-03 178 1.30e-03 1.40e-03 165 1.40e-03 1.50e-03 175 1.50e-03 1.60e-03 125 1.60e-03 1.70e-03 109 1.70e-03 1.80e-03 112 1.80e-03 1.90e-03 90 . . . . 9.86e-02 9.87e-02 0 9.87e-02 9.88e-02 0 9.88e-02 9.89e-02 0 9.89e-02 9.90e-02 0 9.90e-02 9.91e-02 0 9.91e-02 9.92e-02 0 9.92e-02 9.93e-02 0 9.93e-02 9.94e-02 0 9.94e-02 9.95e-02 0 9.95e-02 9.96e-02 1 ----------------------------------------- The bins are given by the two first number columns. For instance, the first bin is from 0.00e+00 to 1.00e-04 and has the number of data 81039 Then I run the following script on them: ---------------------------------------------- #!/usr/bin/env python from pylab import * H = load ( './histo3.dat') h = H[:, 2] # the third column n, bins, patches = hist(h, 997, normed=0, log=0, facecolor='lightblue', alpha=0.75) show() ---------------------------------------------- The number 997 is because this is the number of lines I have in my file (and, thus, the number of bins) But the plot is ranging between 0 - 90000 --> on x axis 0 - 1000 --> on y axis Notice in the data file that x does not get further than 9.96e-02 So the maximum should be 0.0996 and I am getting 90000 Why is that? What am I doing wrong? I have tried to substitute lower-case e with E in the data file but this did not help Any help would be appreciated. thanks, Pau |
|
From: Mauro C. <mau...@gm...> - 2009-07-07 21:10:16
|
Dear Jeff & ALL, In trying to freeze my app using bb-freeze (http://pypi.python.org/pypi/bbfreeze/), I stumbled upon a problem: the app is correctly freezed, but it then looks for the Basemap datafiles and since cannot find them, fails to start (with a message complaining that the above mentioned files are missing). So, my question is: can Basemap data files be installed in a directory other than the default one? And if so, how to instruct a program to look for them in another location? Thanks in advance for any assistance you can provide. Best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Joseph S. <jos...@gm...> - 2009-07-07 21:06:29
|
I have several plots where the scientific notation exponential overflows to the top of the plot like this: http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.html. Is there any way to add units to this? So that, if I wanted, the units would show up in the overflow as: 1e8 m^3 , for meters cubed? Also, is there an easy way to add units to the numbers on the x or y axis in general? Thanks. Joseph Smidt -- ------------------------------------------------------------------------ Joseph Smidt <jos...@gm...> Physics and Astronomy 4129 Frederick Reines Hall Irvine, CA 92697-4575 Office: 949-824-3269 |
|
From: Nicolas B. <nbi...@gm...> - 2009-07-07 18:26:18
|
Hi, I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. >From mpl's website, an example for 3D bar plotting is shown[1]. I just don't understand the axes. From the code, shouldn't X values go from 0 to 20, instead of 0 to 400 000 like shown on the graph? Where does these values for the X and Z axes comes from (in the graph)? I'm trying my own 3D bar plot, with similar "weird" results. Could it be a bug? Thanx a lot. [1] http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html |
|
From: Voichek <vo...@gm...> - 2009-07-07 14:58:54
|
Hi everyone,
I just installed matplotlib (after suffering from Numpy, Scipy, Atlas,
Lapack...), and I have this weird problem.
When I plot the first time I have no problem, the plot comes out just fine
and the plot window is interactive.
After I close the plotting window and try to plot again I can see the graph
but the plot window doesn't response (not interactive).
When I import pylab I get this warning:
>>> import pylab
Warning (from warnings module):
File
"/home/yoavv/ActivePython-2.6_64/lib/python2.6/site-packages/pytz/tzinfo.py",
line 5
from sets import Set
DeprecationWarning: the sets module is deprecated
>>> pylab.plot(range(100))
[<matplotlib.lines.Line2D object at 0x2b921d0>]
>>> p = _
>>> pylab.show()
>>> pylab.plot(range(200))
[<matplotlib.lines.Line2D object at 0x3113510>]
- Here no response.
I am using:
- ActivePython-2.6
- matplotlib 0.98.5.3
I would appreciate any help,
Thanks,
voichek
--
View this message in context: http://www.nabble.com/Problem-plotting-with-matplotlib-on-ActivePython-tp24374558p24374558.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Christoph G. <cg...@uc...> - 2009-07-07 02:45:39
|
Hi Steve, matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK. If you don't mind trying, I have a build of the matplotlib trunk available on my homepage that has GTK support enabled: http://www.lfd.uci.edu/~gohlke/#pythonlibs It should work with the PyGTK 2.12 Windows binaries from http://www.pygtk.org/downloads.html. SVG support seems broken: the window.set_icon_from_file() function in backend_gtk.py will raise an exception, not recognizing SVG files. The PNG icon works. Christoph |