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
|
2
(13) |
3
(5) |
4
(5) |
5
(21) |
6
(10) |
7
(9) |
|
8
(4) |
9
(11) |
10
(9) |
11
(11) |
12
(25) |
13
(5) |
14
(2) |
|
15
(5) |
16
(8) |
17
(16) |
18
(11) |
19
(15) |
20
(5) |
21
(8) |
|
22
(4) |
23
(24) |
24
(9) |
25
(14) |
26
(5) |
27
(28) |
28
(2) |
|
29
(13) |
30
(14) |
31
(11) |
|
|
|
|
|
From: Fabien L. <laf...@gm...> - 2012-01-17 12:39:34
|
I'm using an example from Sandro's Tosi book. I've just modified it to
use random data instead cpu_datas.
But the autoscale doesn't work even if I turn
self.ax.set_autoscale_on(True). Do you have an Idea why?
from pylab import *
import random
import sys
from PyQt4 import QtGui
import numpy as np
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg
as NavigationToolbar
#===============================================================================
#
#===============================================================================
class CPUMonitor(FigureCanvas):
"""Matplotlib Figure widget"""
def __init__(self,parent):
# first image setup
self.fig = Figure()
self.ax = self.fig.add_subplot(111)
# initialization of the canvas
FigureCanvas.__init__(self, self.fig)
FigureCanvas.updateGeometry(self)
# generates first "empty" plots
self.user, self.nice = [], []
self.l_user, = self.ax.plot([], self.user, label='Voltage')
self.l_nice, = self.ax.plot([], self.nice, label='Voltage2')
self.ax.set_autoscale_on(True)
# force a redraw of the Figure
# self.fig.canvas.draw()
# start the timer, to trigger an event every x milliseconds)
self.timer = self.startTimer(1000)
self.timerEvent(None)
def get_info(self):
val1 = random.randint(0,4)
return [val1]
def get_info2(self) :
val2 = random.randint(0,12)
return [val2]
def timerEvent(self, evt):
"""Custom timerEvent code, called upon timer event receive"""
result1 = self.get_info()
result2 = self.get_info2()
# append new data to the datasets
self.user.append(result1)
self.nice.append(result2)
# update lines data using the lists with new data
self.l_user.set_data(range(len(self.user)), self.user)
self.l_nice.set_data(range(len(self.nice)), self.nice)
# force a redraw of the Figure
self.fig.canvas.draw()
FigureCanvas.updateGeometry(self)
#===============================================================================
#
#===============================================================================
class ApplicationWindow(QtGui.QMainWindow):
"""Example main window"""
def __init__(self):
# initialization of Qt MainWindow widget
QtGui.QMainWindow.__init__(self)
# set window title
self.setWindowTitle("QHE manip")
# instantiate a widget, it will be the main one
self.main_widget = QtGui.QWidget(self)
# create a vertical box layout widget
vbl = QtGui.QVBoxLayout(self.main_widget)
# instantiate our Matplotlib canvas widget
qmc = CPUMonitor(self.main_widget)
# instantiate the navigation toolbar
ntb = NavigationToolbar(qmc, self.main_widget)
# pack these widget into the vertical box
vbl.addWidget(qmc)
vbl.addWidget(ntb)
# set the focus on the main widget
self.main_widget.setFocus()
# set the central widget of MainWindow to main_widget
self.setCentralWidget(self.main_widget)
# create the GUI application
qApp = QtGui.QApplication(sys.argv)
# instantiate the ApplicationWindow widget
aw = ApplicationWindow()
# show the widget
aw.show()
# start the Qt main loop execution, exiting from this script
# with the same return code of Qt application
sys.exit(qApp.exec_())
|
|
From: Serhiy H. <Ser...@dl...> - 2012-01-17 10:51:01
|
> Yes, they all make squares. Why is it so important the plot be round? Well, it is definitely not a matter of life or death. Just think that round polar plots look a bit nicer. I haven't tried your workaround solution yet (must do something urgent first). But thanks a lot for your help and of course for the Basemap. Very helpful tool even with square maps))!! Serhiy |
|
From: Paul H. <pmh...@gm...> - 2012-01-17 01:47:59
|
Luke, I don't have an answer to your question, but I can confirm what your seeing with the attached image. I generated this figure with MPL 1.1.0, Python 2.7.1, on Windows 7 with ipythonqt and the inline backend. I filed an issue here: https://github.com/matplotlib/matplotlib/issues/680. If I find time tonight, I'll take a stab at tracking this down. Thanks, -paul On Sun, Jan 15, 2012 at 8:17 AM, Luke Jennings <ubu...@go...> wrote: > > Hello > > I sent this email just after Christmas and would appreciate it if anyone has > any suggestions. I am unsure if I have missed a parameter or should I file a > bug? > > Thanks > > Luke > > ---------- Forwarded message ---------- > From: Luke Jennings <ubu...@go...> > Date: Mon, Dec 26, 2011 at 8:52 PM > Subject: Polar graph radial labels > To: mat...@li... > > > Hello, > > I am plotting polar graphs for a university project, the data is > confidential but I based the work on this > example http://matplotlib.sourceforge.net/examples/pylab_examples/polar_demo.html and fortunately > the same problem occurs with this. If you take that code and change the last > four lines from: > > ax.set_rmax(2.0) > grid(True) > > ax.set_title("And there was much rejoicing!", fontsize=20) > show() > > To: > > ax.set_rmax(3.01) > ax.set_rmin(2.91) > grid(True) > ax.set_title("And there was much rejoicing!", fontsize=20) > show() > > and then run the script. > > The min and max needs to be very tight so that the data I am looking at can > be displayed properly. With the tight axis range, the labels end up of to > the top right, they are just visible on my screen (1920x1080) when the graph > is maximised. > > After some experimenting the smaller the range between the maximum and > minimum values the further to the right the labels go. I have not looked > into the coding of the polar module as my python knowledge is not great, but > my guess is that the labels are a set distance from the radial markers. > > So my question is how do I move the radial labels back to the correct > location? > > I hope I have not missed the answer in the documentation. I have installed > version 1.1.0 of matplotlib and its still a problem in it, thanks for the > good instructions on how to do it on ubuntu. > > I look forward to any help. > > Luke > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Jeff W. <js...@fa...> - 2012-01-16 21:27:07
|
On 1/16/12 11:08 AM, Serhiy Hrechanyy wrote: >>> m = Basemap(projection = 'npstere', resolution = 'c', lat_0 = 90., >>> lon_0 = 0., >>> area_thresh = 1000., boundinglat = 40. >>> >>> ) >>> >>> one get a square map. Is there any way to make the map round, not >>> square? >> No. > > Thanks, Jeff, > > could you suggest any other projection to do the job (round polar plot). > > 'ortho' makes a round map, but goes almost till Equator (I would > rather prefer 40°) > > Do 'npaeqd' and 'nplaea' make only "squares" as well? Serhiy: Here's a hacky workaround that does what you want. Run it in the matplotlib examples directory (it uses data files in there). -Jeff |
|
From: Francesco M. <fra...@go...> - 2012-01-16 19:07:13
|
2012/1/16 Michael Cracraft <mic...@gm...>: > I prepared some plots for a conference paper using pcolormesh. The plots > need to work both for color and for a b&w print copy. Does anyone have a > goto color map for that sort of occassion? I was using YlGrBu, but I'm just > not happy with it. > > Thanks, > Michael > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > Dear Michael, Recently I've used 'hot' which I think is very clear in color and works perfectly in grayscale. Cheers, Francesco |
|
From: Jeff W. <js...@fa...> - 2012-01-16 19:06:08
|
On 1/16/12 11:08 AM, Serhiy Hrechanyy wrote: >>> m = Basemap(projection = 'npstere', resolution = 'c', lat_0 = 90., >>> lon_0 = 0., >>> area_thresh = 1000., boundinglat = 40. >>> >>> ) >>> >>> one get a square map. Is there any way to make the map round, not >>> square? >> No. > > Thanks, Jeff, > > could you suggest any other projection to do the job (round polar plot). > > 'ortho' makes a round map, but goes almost till Equator (I would > rather prefer 40°) > > Do 'npaeqd' and 'nplaea' make only "squares" as well? Serhiy: Yes, they all make squares. Why is it so important the plot be round? -Jeff |
|
From: Michael C. <mic...@gm...> - 2012-01-16 17:45:17
|
I prepared some plots for a conference paper using pcolormesh. The plots need to work both for color and for a b&w print copy. Does anyone have a goto color map for that sort of occassion? I was using YlGrBu, but I'm just not happy with it. Thanks, Michael |
|
From: Serhiy <Ser...@dl...> - 2012-01-16 16:00:45
|
Dear all, using a polarstereograhic projection with Basemap ( m = Basemap(projection = 'npstere', resolution = 'c', lat_0 = 90., lon_0 = 0., area_thresh = 1000., boundinglat = 40. ) one get a square map. Is there any way to make the map round, not square? Many thanks, |
|
From: Benjamin R. <ben...@ou...> - 2012-01-16 14:18:14
|
On Monday, January 16, 2012, Nils Wagner <nw...@ia...> wrote: > Hi all, > > I have filed a ticket for adding a printer button to the > navigation toolbar. > https://github.com/matplotlib/matplotlib/issues/670 > I am interested in a wider response. > > Any further comments ? > > Nils > > Adding a button is easy... Adding cross-platform printer capability is not. The only way I envision it could happen is if the GUI toolkits have some sort of printing API. We already can convert to postscript. Ben Root |
|
From: Nils W. <nw...@ia...> - 2012-01-16 11:40:54
|
Hi all, I have filed a ticket for adding a printer button to the navigation toolbar. https://github.com/matplotlib/matplotlib/issues/670 I am interested in a wider response. Any further comments ? Nils |
|
From: Fabien L. <laf...@gm...> - 2012-01-16 09:21:54
|
I try to plot some data directly from a file but without any sucess so far...
from pylab import *
plotfile("test.txt",(0,1))
My test.txt is in the same folder and it's just
1 2 3
5 2 6
4 5 8
It returns
Traceback (most recent call last):
File "C:\Documents and Settings\lafont.LNE\Bureau\plotfile.py", line
19, in <module>
plotfile("test.txt",(0,1))
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line
1908, in plotfile
yname, y = getname_val(cols[i])
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line
1880, in getname_val
name = r.dtype.names[int(identifier)]
IndexError: tuple index out of range
I don't understand, I do the same as the example on the matplotlib
website, but it doesn't work
|
|
From: Alan G I. <ala...@gm...> - 2012-01-15 18:11:20
|
On 1/15/2012 12:42 PM, Eric Firing wrote: > Importing from pdf or eps would be > very difficult. Few applications even attempt it. That said, PostScript drawing on top of an EPS is naturally quite possible. See e.g. PyX for a pure Python approach. http://pyx.sourceforge.net/manual/epsfile.html Cheers, Alan Isaac |
|
From: Eric F. <ef...@ha...> - 2012-01-15 17:43:06
|
On 01/15/2012 01:00 AM, Per Nielsen wrote: > Hi all > > I am trying to include vector graphics in the form of either PDF or EPS > in a matplotlib figure. At first I thought it would be straight forward, > but all my googling have been in vain so far. > > Eventually I found this post: > > http://www.mailinglistarchive.com/html/mat...@li.../2009-09/msg00009.html > > stating that it is not possible to include EPS in matplotlib figures. Is > this still the case? Or might there be some work around? This is still the case; there has been no change since Mike's message, and there is not likely to be any. Importing from pdf or eps would be very difficult. Few applications even attempt it. Eric > > Cheers, > > Per > |
|
From: Luke J. <ubu...@go...> - 2012-01-15 16:17:23
|
Hello I sent this email just after Christmas and would appreciate it if anyone has any suggestions. I am unsure if I have missed a parameter or should I file a bug? Thanks Luke ---------- Forwarded message ---------- From: Luke Jennings <ubu...@go...> Date: Mon, Dec 26, 2011 at 8:52 PM Subject: Polar graph radial labels To: mat...@li... Hello, I am plotting polar graphs for a university project, the data is confidential but I based the work on this example http://matplotlib.sourceforge.net/examples/pylab_examples/polar_demo.html and fortunately the same problem occurs with this. If you take that code and change the last four lines from: ax.set_rmax(2.0)grid(True) ax.set_title("And there was much rejoicing!", fontsize=20)show() To: ax.set_rmax(3.01) ax.set_rmin(2.91) grid(True)ax.set_title("And there was much rejoicing!", fontsize=20)show() and then run the script. The min and max needs to be very tight so that the data I am looking at can be displayed properly. With the tight axis range, the labels end up of to the top right, they are just visible on my screen (1920x1080) when the graph is maximised. After some experimenting the smaller the range between the maximum and minimum values the further to the right the labels go. I have not looked into the coding of the polar module as my python knowledge is not great, but my guess is that the labels are a set distance from the radial markers. So my question is how do I move the radial labels back to the correct location? I hope I have not missed the answer in the documentation. I have installed version 1.1.0 of matplotlib and its still a problem in it, thanks for the good instructions on how to do it on ubuntu. I look forward to any help. Luke |
|
From: Per N. <ev...@gm...> - 2012-01-15 11:01:02
|
Hi all I am trying to include vector graphics in the form of either PDF or EPS in a matplotlib figure. At first I thought it would be straight forward, but all my googling have been in vain so far. Eventually I found this post: http://www.mailinglistarchive.com/html/mat...@li.../2009-09/msg00009.html stating that it is not possible to include EPS in matplotlib figures. Is this still the case? Or might there be some work around? Cheers, Per |
|
From: Nathan S. <nsa...@gm...> - 2012-01-15 07:14:48
|
Greetings, I just installed matplotlib on my Mac OS 10.6 Machine (64bit) with default Python 2.7.1 (easy_install). While the initial 2D graph examples work great, when testing any of the animations, such as: http://matplotlib.sourceforge.net/examples/animation/simple_anim.html I always get the same error: File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py", line 248, in _blit_clear a.figure.canvas.restore_region(bg_cache[a]) AttributeError: 'FigureCanvasMac' object has no attribute 'restore_region' Since "restore_region" is only in backend_agg.py and not in backend_macosx.py, After reading more on this, I thought this might be corrected by re-installing from source and setting the setup.cfg to macosx = True and backend = MacOSX prior to building, but this did not correct the issue. Also, changing backend: Agg to backend: MacOSX in: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc didn't work either. Does anyone have experience with this or further insight? Thanks, Nathan |
|
From: klo uo <kl...@gm...> - 2012-01-14 13:57:58
|
I browsed Google, and found mainly outdated code examples (also on scipy cookbook) then some 2008 posts on StackOverflow where at least I find some trace that matplotlib.figure.Figure has some instruments to change output image size, but it's in combination from inches and dpi set. However I just couldn't find how to tell my plt graph to use this matplotlib.figure.Figure settings, and ended editing matplotlibrc file and changing inches and DPI there Shouldn't be there some easier setting to set image size for savefig() output? |
|
From: Andrew <and...@ya...> - 2012-01-14 02:41:55
|
Hi Hi, I am having troubles getting matplotlib to install. I have mac os X lion with Xcode 4.2.1 installed and I have used git to get the latest version of matplotlib. I am also running python 2.7.2 from the python.org site. The installation process was going fine based on the make.osx file supplied . The only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to get it to compile, the I hit the following problem: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o In file included from src/ft2font.cpp:3: src/ft2font.h:16:22: error: ft2build.h: No such file or directory src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> In file included from src/ft2font.cpp:3: src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:34: error: ‘FT_Int’ has not been declared src/ft2font.h:34: error: ‘FT_Int’ has not been declared src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:131: error: ‘FT_Face’ does not name a type src/ft2font.h:132: error: ‘FT_Matrix’ does not name a type src/ft2font.h:133: error: ‘FT_Vector’ does not name a type src/ft2font.h:134: error: ‘FT_Error’ does not name a type src/ft2font.h:135: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:135: error: template argument 1 is invalid src/ft2font.h:135: error: template argument 2 is invalid src/ft2font.h:136: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:136: error: template argument 1 is invalid src/ft2font.h:136: error: template argument 2 is invalid src/ft2font.h:141: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type src/ft2font.cpp:116: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:116: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:116: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:117: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:118: error: ‘FT_Int’ was not declared in this scope In file included from src/ft2font.cpp:3: src/ft2font.h:16:22: error: ft2build.h: No such file or directory src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> In file included from src/ft2font.cpp:3: src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:34: error: ‘FT_Int’ has not been declared src/ft2font.h:34: error: ‘FT_Int’ has not been declared src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:131: error: ‘FT_Face’ does not name a type src/ft2font.h:132: error: ‘FT_Matrix’ does not name a type src/ft2font.h:133: error: ‘FT_Vector’ does not name a type src/ft2font.h:134: error: ‘FT_Error’ does not name a type src/ft2font.h:135: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:135: error: template argument 1 is invalid src/ft2font.h:135: error: template argument 2 is invalid src/ft2font.h:136: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:136: error: template argument 1 is invalid src/ft2font.h:136: error: template argument 2 is invalid src/ft2font.h:141: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type src/ft2font.cpp:116: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:116: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:116: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:117: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:118: error: ‘FT_Int’ was not declared in this scope lipo: can't figure out the architecture type of: /var/folders/2d/t8xdmbdj103bmcjbm72j49980000gp/T//ccOY6Ibr.out error: command 'gcc-4.2' failed with exit status 1 Any thoughts on how to fix it? thanks, Andrew |
|
From: Fabien L. <laf...@gm...> - 2012-01-13 16:26:31
|
How can I show the milliseconds with the library time because
time.time is precise (or at least show) up to 0.01 seconds and it
seems it's not possible to print more than seconds... An idea?
I use
time.strftime("%H:%M:%S", gmtime(time.time()))
Fabien
|
|
From: Yann T. <yan...@bu...> - 2012-01-13 16:26:11
|
I'm trying to update the position of an annotation. If I add an annotation,
change it's position using set_position, I find the value of the position
(found using get_position) is updated, but the actual position on the
figure does not change. How can I actually change the position of the text
and starting point of the corresponding arrow?
Here's an example:
import matplotlib.pyplot as plt
data = [10, 8, 8, 5]
fig = plt.figure()
ax = fig.add_subplot(111)
ax.bar(range(len(data)),data)
ax.set_ylim(0,max(data)+2)
annotationPos1 = ax.annotate("Really long and large label",fontsize=12,
xy=(1.4,8),
xytext=(1.4,8.5),
arrowprops=dict(arrowstyle="->")
)
annotationPos2 = ax.annotate("Really long and large label",fontsize=12,
xy=(1.4,8),
xytext=(1.4,10.5),
arrowprops=dict(arrowstyle="->")
)
apos1before = annotationPos1.get_position()
annotationPos1.set_position((apos1before[0],apos1before[1]+2))
apos1after = annotationPos1.get_position()
apos2 = annotationPos2.get_position()
print apos1before,apos1after,apos2
plt.show()
Thanks, Yann
|
|
From: Jae-Joon L. <lee...@gm...> - 2012-01-13 11:54:00
|
As far as I know, No, there is no such way inside matplotlib that does that for you. But, in theory, it should not be very difficult to implement. Can you open a new issue on our github page? Regards, -JJ On Thu, Jan 12, 2012 at 4:16 AM, Craig the Demolishor <des...@gm...> wrote: > Hi, > I'm drawing a histogram and I would like to place a text box within the > axes that shows the number of events. I like the way I can pass "loc='best'" > to pyplot.legend() and it automatically does its best to avoid my data. Is > there any way to replicate this for a simple call to pyplot.text(), like so: > > ax.text(0.05, 0.95, 'Entries: ' + len(myData), > transform=ax.transAxes, fontsize=14, verticalalignment='top', > bbox=dict(boxstyle='square', facecolor='white')) > > Thanks in advance! > > --craig > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Mike M. <mmu...@py...> - 2012-01-13 11:00:52
|
Learn matplotlib and Much More ============================== Scientists like Python. If you would like to learn more about important libraries for scientific applications, you might be interested in these courses. The course in Germany covers: - Overview of libraries - NumPy - Data storage with text files, Excel, netCDF and HDF5 - matplotlib - Object oriented programming for scientists - Problem solving session The course in the USA covers all this plus: - Extending Python in other languages - Version control - Unit testing More details below. If you have any questions about the courses, please contact me. Mike Python for Scientists and Engineers (Germany) --------------------------------------------- A three-day course covering all the basic tools scientists and engineers need. This course requires basic Python knowledge. Date: 19.01.-21.01.2012 Location: Leipzig, Germany Trainer: Mike Müller Course Language: English Link: http://www.python-academy.com/courses/python_course_scientists.html Python for Scientists and Engineers (USA) ----------------------------------------- This is an extend version of our well-received course for scientists and engineers. Five days of intensive training will give you a solid basis for using Python for scientific an technical problems. The course is hosted by David Beazley (http://www.dabeaz.com). Date: 27.02.-02.03.2012 Location: Chicago, IL, USA Trainer: Mike Müller Course Language: English Link: http://www.dabeaz.com/chicago/science.html |
|
From: drcoopa <dr...@gm...> - 2012-01-13 05:25:44
|
> > Looking at the install of basemap closely I noticed some errors that > make me wonder whether the geos libraries need to be compiled as 64- > bit to work? > Mike: Yes, I suspect that is the problem. Unfortunately, I've no idea how to fix that. Even if you get beyond that though - I think you are going to run into problems with basemap/geos using python 2.6 and numpy 1.2.1. I've been waiting for a numpy 1.3 release that fully supports python 2.6 before digging into this. ***** Was this ever resolved? I am having the same basemap/geos error - "Symbol not found: _GEOSArea" I am using python 2.7 with numpy-1.6.1 for py 2.7. I made sure to use the 32 bit python to match with with the numpy version. I'm near at my wits end, so any help would be awesome -- View this message in context: http://old.nabble.com/basemap-install-problem-for-64-Bit-x86_64-on-os-x-tp21921348p33132200.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Benjamin R. <ben...@ou...> - 2012-01-12 22:41:33
|
On Thu, Jan 12, 2012 at 4:32 PM, Michael Rawlins <raw...@ya...>wrote: > On 01/12/12 Ben Root wrote: > > On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins <raw...@ya...>wrote: > > > On 01/12/12 Ben Root wrote: > > On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins <raw...@ya...>wrote: > > > On 01/12/12 Ben Root wrote: > > Just a quick suggestion for cleaning up your code, please look into the > argparse module to make command-line parsing so much easier to use. > <http://docs.python.org/dev/library/argparse.html> > http://docs.python.org/dev/library/argparse.html > > Ben Root > > > > Command line parsing? I'm new to python and matplotlib and was given this > code by a colleague. I've managed to make simple modifications. Don't know > enough yet to use the examples in the link you provide. > > I've simplified my code as much as possible. The first 50 lines make a > map. The code below that makes a 4 panel graphic. Seems that plt.figure > invokes a new plot window. But plt.semilogy, plt.loglog, and plt.hist do > not, keeping the panels in a single window. This is what I need. Trying now > to figure out how to transfer the fig=plt.figure line into the subplot > section, without popping up a new window. > > Mike > > > > Ok, a quick crash course: > > A "figure" can hold one or more "axes" (or subplots). When using "plt", > you can choose to make figures explicitly with the "fig = plt.figure()" > command or not. The same is true for axes objects. If you call a command > that needs a figure and/or an axes object to have been made and they don't > exist, then they are made for you automatically. Otherwise, the most > recently accessed figure/axes are assumed. This is why plt.hist(), > plt.semilog() and others are not creating a new figure window if one > already existed. > > Anyway, for your code, you do not want to bring in the plt.figure() call > into the subploting section. The example you were given takes advantage of > pyplot's implicit syntax (where it is implicitly assumed which axes/figure > object you are using). However, I personally do not like that approach, and > instead decided to show you an explicit style. I created a foobar() > function that takes a blank figure object and other parameters, creates the > four subplot axes and performs drawing on each of them. Note that the > title is for the subplot, not for the figure. If you want a title for the > figure above all the other subplots, use "fig.suptitle()". I then have a > loop where a figure is created each time, the foobar() function acts on > that figure, saved and then cleared before the next iteration. > > Note, I noticed you had "plt.show()" commented out before the call to > "plt.savefig()". Usually, you will want savefig() to come *before* show() > because closing the figure window will destroy the figure object, resulting > in a blank figure to save if done afterwards. > > I hope this is helpful! > Ben Root > > > > > OK starting to make sense. Yes very helpful. I think what's you've set up > might work, provided I can pass a filename for data into the function. > > At the moment I'm getting an error: > > NameError: name 'foobar' is not defined > > for the line with: foobar(fig, m, title) > > Mike > > > My bad... I put the declaration of the foobar() function after it is > called in the script. This isn't an issue if they are in separate scopes, > but because "def foobar" is in the same scope as the call to it, it must > have already been declared before it gets called. Just move that function > to the area after all the imports. > > Ben Root > > > Thanks for the help. Code throwing another error: > > Traceback (most recent call last): > File "panels_testingNEW4.py", line 69, in <module> > foobar(fig, m, title) > File "panels_testingNEW4.py", line 23, in foobar > title(title) > TypeError: 'str' object is not callable > > Oh, right, the creation of the "title" variable got rid of the existing function. Just do "ax.set_title(title)" instead. Ben Root |
|
From: Michael R. <raw...@ya...> - 2012-01-12 22:32:26
|
On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins <raw...@ya...> wrote: > >On 01/12/12 Ben Root wrote: > >On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins <raw...@ya...> wrote: > > >>On 01/12/12 Ben Root wrote: >> >>Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. >> >>http://docs.python.org/dev/library/argparse.html >> >> >>Ben Root >> >> >> >>Command line parsing? I'm new to python and matplotlib and was given this code by a colleague. I've managed to make simple modifications. Don't know enough yet to use the examples in the link you provide. >> >>I've simplified my code as much as possible. The first 50 lines make a map. The code below that makes a 4 panel graphic. Seems that plt.figure invokes a new plot window. But plt.semilogy, plt.loglog, and plt.hist do not, keeping the panels in a single window. This is what I need. Trying now to figure out how to transfer the fig=plt.figure line into the subplot section, without popping up a new window. >> >>Mike >> >> >> > >Ok, a quick crash course: > >A "figure" can hold one or more "axes" (or subplots). When using "plt", you can choose to make figures explicitly with the "fig = plt.figure()" command or not. The same is true for axes objects. If you call a command that needs a figure and/or an axes object to have been made and they don't exist, then they are made for you automatically. Otherwise, the most recently accessed figure/axes are assumed. This is why plt.hist(), plt.semilog() and others are not creating a new figure window if one already existed. > >Anyway, for your code, you do not want to bring in the plt.figure() call into the subploting section. The example you were given takes advantage of pyplot's implicit syntax (where it is implicitly assumed which axes/figure object you are using). However, I personally do not like that approach, and instead decided to show you an explicit style. I created a foobar() function that takes a blank figure object and other parameters, creates the four subplot axes and performs drawing on each of them. Note that the title is for the subplot, not for the figure. If you want a title for the figure above all the other subplots, use "fig.suptitle()". I then have a loop where a figure is created each time, the foobar() function acts on that figure, saved and then cleared before the next iteration. > >Note, I noticed you had "plt.show()" commented out before the call to "plt.savefig()". Usually, you will want savefig() to come *before* show() because closing the figure window will destroy the figure object, resulting in a blank figure to save if done afterwards. > >I hope this is helpful! >Ben Root > > > > >OK starting to make sense. Yes very helpful. I think what's you've set up might work, provided I can pass a filename for data into the function. > >At the moment I'm getting an error: > >NameError: name 'foobar' is not defined > >for the line with: foobar(fig, m, title) > >Mike > > My bad... I put the declaration of the foobar() function after it is called in the script. This isn't an issue if they are in separate scopes, but because "def foobar" is in the same scope as the call to it, it must have already been declared before it gets called. Just move that function to the area after all the imports. Ben Root Thanks for the help. Code throwing another error: Traceback (most recent call last): File "panels_testingNEW4.py", line 69, in <module> foobar(fig, m, title) File "panels_testingNEW4.py", line 23, in foobar title(title) TypeError: 'str' object is not callable |