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
(1) |
|
2
|
3
(10) |
4
(17) |
5
(7) |
6
(21) |
7
(15) |
8
(6) |
|
9
(7) |
10
(8) |
11
(6) |
12
(11) |
13
(11) |
14
(13) |
15
(4) |
|
16
(5) |
17
(8) |
18
(8) |
19
(15) |
20
(3) |
21
(10) |
22
(5) |
|
23
(7) |
24
(8) |
25
(29) |
26
(26) |
27
(7) |
28
(2) |
29
(3) |
|
30
(3) |
|
|
|
|
|
|
|
From: Paul T. <pau...@gm...> - 2012-09-06 18:27:57
|
I build from github.
On Thu, Sep 6, 2012 at 10:35 AM, James Morrison <jam...@gm...>wrote:
> Hi, I downloaded a zip from the master on the github matplotlib
> repository, when I run: python3 setup.py install
>
> I get several 'SyntaxError: invalid syntax' errors which appear to
> highlight quotes
> ...
>
> byte-compiling
> /usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py
> to plot_directive.cpython-32.pyc
> File
> "/usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py",
> line 510
> exec "import numpy as np\nfrom matplotlib import pyplot as plt\n" in ns
>
My install has:
exec("import numpy as np\nfrom matplotlib import pyplot
as plt\n", ns)
^^ [no in]
>
> ^
> SyntaxError: invalid syntax
>
> byte-compiling
> /usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py
> to backend_svg.cpython-32.pyc
> File
> "/usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py",
> line 69
> s = s.replace(u"&", u"&")
> ^
>
That matches my file, and seems like completely valid syntax. When I copy
and execute that text myself, it doesn't raise an error. However, I think
the problem may be that python3 no longer accepts unicode strings.
s = s.replace("&", "&")
SyntaxError: invalid syntax
>
> ...
>
> Full output is here: https://gist.github.com/3656878
>
> I'm running Scientific Linux 5.4 and numpy appears to work ok installed
> via pip-3.2.
>
> Any ideas?
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: mogliii <mo...@gm...> - 2012-09-06 14:59:02
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/09/2012 14:49, Benjamin Root
wrote:<br>
</div>
<blockquote
cite="mid:CAN...@ma..."
type="cite"><br>
<br>
<div class="gmail_quote">On Thu, Sep 6, 2012 at 6:54 AM, Mogliii <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:mo...@gm..." target="_blank">mo...@gm...</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi,<br>
<br>
I am preparing figures with the following matplotlib
preamble:<br>
<br>
plt.rc('font', **{'family':'serif', 'serif':['Computer
Modern Roman'],<br>
'monospace':['Computer Modern
Typewriter']})<br>
params = {'backend': 'ps',<br>
'text.latex.preamble': [r"\usepackage{upgreek}",<br>
r"\usepackage[nice]{units}"],<br>
'axes.labelsize': 12,<br>
'text.fontsize': 12,<br>
'legend.fontsize': 8,<br>
'xtick.labelsize': 10,<br>
'ytick.labelsize': 10,<br>
'text.usetex': True,<br>
'figure.figsize': fig_size,<br>
'axes.unicode_minus': True}<br>
plt.rcParams.update(params)<br>
<br>
<br>
But when using subscript and superscript in math mode the
sizes end up different than in my LaTeX document (my .cls is
using "book" as base class).<br>
<br>
Attached are two screenshots of it rendered from matplotlib
and from Latex (sorry for the different sizes). The "mean"
is clearly of different size in relation to the "d".<br>
<br>
<br>
Is there an option to specify a .cls file in rcParams that
should be used for rendering? <br>
I tried: <br>
text.latex.preamble': [r"\documentclass[twoside]{mycls}",<br>
r"\usepackage{upgreek}",<br>
r"\usepackage[nice]{units}"],<br>
but then I get the error:<br>
! LaTeX Error: Two \documentclass or \documentstyle
commands.<br>
<br>
How to overwrite default matplotlib one? my matplotlibrc has
a commented preamble.<br>
<br>
<br>
<br>
See also my question on <a moz-do-not-send="true"
href="http://tex.stackexchange.com" target="_blank">tex.stackexchange.com</a>:
<a moz-do-not-send="true"
href="http://tex.stackexchange.com/questions/70400/subscript-size-different-in-latex-and-matplotlib"
target="_blank">http://tex.stackexchange.com/questions/70400/subscript-size-different-in-latex-and-matplotlib</a><br>
<br>
<br>
<br>
Many thanks<br>
</div>
<br>
</blockquote>
<div><br>
This might have been fixed at one point. Which version of
matplotlib are you using?<br>
<br>
Ben Root<br>
<br>
</div>
</div>
</blockquote>
<br>
I found the solution. My LaTeX file uses the package amsmath, which
also loads amstext. And that is invoked when using \text{} or
\textnormal{} inside a formula.<br>
<br>
So the solution in matplotlib is to add the following to the
preamble:<br>
'text.latex.preamble': [r"\usepackage{upgreek}",<br>
r"\usepackage[nice]{units}",<br>
<span class="comment-copy"><code>r"\usepackage{amstext}"</code></span>],<br>
<br>
I was using matplotlib 1.1, now updated to 1.1.1, but that did not
affect it. Also, I am not using the built-in LaTeX typesetting.<br>
<br>
<br>
</body>
</html>
|
|
From: James M. <jam...@gm...> - 2012-09-06 14:35:19
|
Hi, I downloaded a zip from the master on the github matplotlib repository,
when I run: python3 setup.py install
I get several 'SyntaxError: invalid syntax' errors which appear to
highlight quotes
...
byte-compiling
/usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py
to plot_directive.cpython-32.pyc
File
"/usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py",
line 510
exec "import numpy as np\nfrom matplotlib import pyplot as plt\n" in ns
^
SyntaxError: invalid syntax
byte-compiling
/usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py
to backend_svg.cpython-32.pyc
File
"/usr/local/lib/python3.2/site-packages/matplotlib/backends/backend_svg.py",
line 69
s = s.replace(u"&", u"&")
^
SyntaxError: invalid syntax
...
Full output is here: https://gist.github.com/3656878
I'm running Scientific Linux 5.4 and numpy appears to work ok installed via
pip-3.2.
Any ideas?
|
|
From: Erika M. <eri...@li...> - 2012-09-06 14:06:40
|
Hello everyone,
I have a problem with a colorbar:
I have a stackedbar and a colorbar that I want to create or delete by clicking
on a button.. but when the colorbar is deleted I want to change the dimension
of the axes, resizing it even in the place occupied by the colorbar..
I need to create the colorbar by using the function "make_axes_locatable" and
not others function..
Someone can help me?
this is the code:
from matplotlib.figure import Figure
from mpl_toolkits.axes_grid.axes_divider import make_axes_locatable
from matplotlib import mpl, colorbar
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
FigureCanvas
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys
class Test(QWidget):
def __init__(self):
QWidget.__init__(self)
self.resize(1000, 700)
self.setGeometry(20,30,700,500)
self.fig = Figure(figsize=(100,100), dpi=75)
self.canvas = FigureCanvas(self.fig)
self.axes = self.fig.add_subplot(111)
b = self.axes.bar([0,1,2,3],[5,4,9,6])
self.colorbar = True
self.Colorbar()
self.old_size = self.axes.get_position()
self.btn = QPushButton()
self.btn.resize(20,20)
self.btn.clicked.connect(self.OnBtnClicked)
self.Layout = QHBoxLayout()
spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding,
QSizePolicy.Minimum)
self.Layout.addItem(spacerItem)
self.Layout.addWidget(self.canvas)
self.Layout.addWidget(self.btn)
self.setLayout(self.Layout)
def OnBtnClicked(self):
self.colorbar = not self.colorbar
self.Colorbar()
def Colorbar(self):
if self.colorbar :
self.divider = make_axes_locatable(self.axes)
self.cax = self.divider.append_axes("right", size="3%", pad=0.1)
self.cmap = mpl.colors.ListedColormap(['b'])
self.cb = mpl.colorbar.ColorbarBase(self.cax,
cmap=self.cmap,
orientation='vertical')
else:
if hasattr(self, "cb") :
fig = self.axes.get_figure()
fig.delaxes(self.cb.ax)
del self.cb
self.axes.set_position(self.old_size)
self.fig.canvas.draw()
app = QApplication(sys.argv)
win = Test()
win.show()
sys.exit(app.exec_())
thanks
Erika
|
|
From: Jon Roadley-B. <jon...@gm...> - 2012-09-06 13:56:13
|
On 6 September 2012 14:20, Benjamin Root <ben...@ou...> wrote: > > > On Thu, Sep 6, 2012 at 5:29 AM, Jon Roadley-Battin > <jon...@gm...> wrote: >> >> Good morning, >> >> I have an odd problem with saving plot images via the navigation bar >> (unsure if it is unique to the navigation bar) if I have added custom >> text. >> >> BACKGROUND. >> I have a python gui which is used to connect to some hardware as a >> diagnosis tool. Its a pyGTK program and on one ui tab there is an >> embeded matplotlib plot. >> Now some of the signals I plot rather than being a waveform is more of >> a collection of flags (16bit but thats a by and by) >> eg: >> >> >> >> >> fault >> 0 = fault1 >> 0 = fault2 >> 1 = fault3 >> 0 = fault4 >> >> >> >> so for this I can plot this and it will show 2 (possibly changing w.r.t. >> time). >> I then hook in via a onpick event such that if I click on a plot I >> essentially do this: >> >> self.figtxt = >> self.fig.text(0.79,0.92,'\n'.join(txt),va='top', >> bbox=dict(boxstyle='round', facecolor='white',alpha=0.7)) >> self.plot_marker = >> self.plot_area.plot(xdata,ydata,'x',color=event.artist.get_color(),ms=7) >> >> ie I put a cross where someone clicked (for indication) and I also >> create a texxbox which lists human readable version of what bits are >> set. >> Great, really helpful in debugging. >> >> The issue is if you click on the save image icon on the navigation >> toolbar it saves the waveform and legend BUT not the additional >> content (the cross and the textbox). >> >> >> any idea as to how todo this? >> > > What you are describing should work as expected. Is it possible that you > could make a simple, self-contained version (hopefully it doesn't need to be > embedded to reproduce the problem)? Maybe a modification of one of the > existing examples in the online docs might be able to reproduce your issue? > > Ben Root > Good afternoon, I agree it should work and the examples i have run allow this so this is why I am looking over my specifics. The only thing I can see is the examples call to add txt via an axes entity, I have been doing it via a figure entity. I am going to re-write to draw on the axis (last time I did this it didn't display hence going for a figure). If this doesn't work I shall strip the code down to a minimum example demonstrating what I am describing |
|
From: Benjamin R. <ben...@ou...> - 2012-09-06 13:50:19
|
On Thu, Sep 6, 2012 at 6:54 AM, Mogliii <mo...@gm...> wrote:
> Hi,
>
> I am preparing figures with the following matplotlib preamble:
>
> plt.rc('font', **{'family':'serif', 'serif':['Computer Modern Roman'],
> 'monospace':['Computer Modern Typewriter']})
> params = {'backend': 'ps',
> 'text.latex.preamble': [r"\usepackage{upgreek}",
> r"\usepackage[nice]{units}"],
> 'axes.labelsize': 12,
> 'text.fontsize': 12,
> 'legend.fontsize': 8,
> 'xtick.labelsize': 10,
> 'ytick.labelsize': 10,
> 'text.usetex': True,
> 'figure.figsize': fig_size,
> 'axes.unicode_minus': True}
> plt.rcParams.update(params)
>
>
> But when using subscript and superscript in math mode the sizes end up
> different than in my LaTeX document (my .cls is using "book" as base class).
>
> Attached are two screenshots of it rendered from matplotlib and from Latex
> (sorry for the different sizes). The "mean" is clearly of different size in
> relation to the "d".
>
>
> Is there an option to specify a .cls file in rcParams that should be used
> for rendering?
> I tried:
> text.latex.preamble': [r"\documentclass[twoside]{mycls}",
> r"\usepackage{upgreek}",
> r"\usepackage[nice]{units}"],
> but then I get the error:
> ! LaTeX Error: Two \documentclass or \documentstyle commands.
>
> How to overwrite default matplotlib one? my matplotlibrc has a commented
> preamble.
>
>
>
> See also my question on tex.stackexchange.com:
> http://tex.stackexchange.com/questions/70400/subscript-size-different-in-latex-and-matplotlib
>
>
>
> Many thanks
>
>
This might have been fixed at one point. Which version of matplotlib are
you using?
Ben Root
|
|
From: Benjamin R. <ben...@ou...> - 2012-09-06 13:20:42
|
On Thu, Sep 6, 2012 at 5:29 AM, Jon Roadley-Battin < jon...@gm...> wrote: > Good morning, > > I have an odd problem with saving plot images via the navigation bar > (unsure if it is unique to the navigation bar) if I have added custom > text. > > BACKGROUND. > I have a python gui which is used to connect to some hardware as a > diagnosis tool. Its a pyGTK program and on one ui tab there is an > embeded matplotlib plot. > Now some of the signals I plot rather than being a waveform is more of > a collection of flags (16bit but thats a by and by) > eg: > > > > > fault > 0 = fault1 > 0 = fault2 > 1 = fault3 > 0 = fault4 > > > > so for this I can plot this and it will show 2 (possibly changing w.r.t. > time). > I then hook in via a onpick event such that if I click on a plot I > essentially do this: > > self.figtxt = > self.fig.text(0.79,0.92,'\n'.join(txt),va='top', > bbox=dict(boxstyle='round', facecolor='white',alpha=0.7)) > self.plot_marker = > self.plot_area.plot(xdata,ydata,'x',color=event.artist.get_color(),ms=7) > > ie I put a cross where someone clicked (for indication) and I also > create a texxbox which lists human readable version of what bits are > set. > Great, really helpful in debugging. > > The issue is if you click on the save image icon on the navigation > toolbar it saves the waveform and legend BUT not the additional > content (the cross and the textbox). > > > any idea as to how todo this? > > What you are describing should work as expected. Is it possible that you could make a simple, self-contained version (hopefully it doesn't need to be embedded to reproduce the problem)? Maybe a modification of one of the existing examples in the online docs might be able to reproduce your issue? Ben Root |
|
From: Benjamin R. <ben...@ou...> - 2012-09-06 13:03:28
|
On Thu, Sep 6, 2012 at 2:24 AM, Eric Firing <ef...@ha...> wrote: > On 2012/09/05 6:17 PM, Paul Tremblay wrote: > > Hmm. I found that mpl handled my datetime objects just fine: > > Right, mpl has handled python datetime objects for a long time, but the > numpy array with a datetime dtype is a new and different object, and it > will take a bit of work to support it properly. > > Eric > > Pedantic: numpy's datetime64 dtype, not datetime. Ben Root |
|
From: Mogliii <mo...@gm...> - 2012-09-06 10:54:46
|
Hi,
I am preparing figures with the following matplotlib preamble:
plt.rc('font', **{'family':'serif', 'serif':['Computer Modern Roman'],
'monospace':['Computer Modern Typewriter']})
params = {'backend': 'ps',
'text.latex.preamble': [r"\usepackage{upgreek}",
r"\usepackage[nice]{units}"],
'axes.labelsize': 12,
'text.fontsize': 12,
'legend.fontsize': 8,
'xtick.labelsize': 10,
'ytick.labelsize': 10,
'text.usetex': True,
'figure.figsize': fig_size,
'axes.unicode_minus': True}
plt.rcParams.update(params)
But when using subscript and superscript in math mode the sizes end up
different than in my LaTeX document (my .cls is using "book" as base class).
Attached are two screenshots of it rendered from matplotlib and from
Latex (sorry for the different sizes). The "mean" is clearly of
different size in relation to the "d".
Is there an option to specify a .cls file in rcParams that should be
used for rendering?
I tried:
text.latex.preamble': [r"\documentclass[twoside]{mycls}",
r"\usepackage{upgreek}",
r"\usepackage[nice]{units}"],
but then I get the error:
! LaTeX Error: Two \documentclass or \documentstyle commands.
How to overwrite default matplotlib one? my matplotlibrc has a commented
preamble.
See also my question on tex.stackexchange.com:
http://tex.stackexchange.com/questions/70400/subscript-size-different-in-latex-and-matplotlib
Many thanks
|
|
From: Jon Roadley-B. <jon...@gm...> - 2012-09-06 09:30:50
|
Good morning,
I have an odd problem with saving plot images via the navigation bar
(unsure if it is unique to the navigation bar) if I have added custom
text.
BACKGROUND.
I have a python gui which is used to connect to some hardware as a
diagnosis tool. Its a pyGTK program and on one ui tab there is an
embeded matplotlib plot.
Now some of the signals I plot rather than being a waveform is more of
a collection of flags (16bit but thats a by and by)
eg:
fault
0 = fault1
0 = fault2
1 = fault3
0 = fault4
so for this I can plot this and it will show 2 (possibly changing w.r.t. time).
I then hook in via a onpick event such that if I click on a plot I
essentially do this:
self.figtxt =
self.fig.text(0.79,0.92,'\n'.join(txt),va='top',
bbox=dict(boxstyle='round', facecolor='white',alpha=0.7))
self.plot_marker =
self.plot_area.plot(xdata,ydata,'x',color=event.artist.get_color(),ms=7)
ie I put a cross where someone clicked (for indication) and I also
create a texxbox which lists human readable version of what bits are
set.
Great, really helpful in debugging.
The issue is if you click on the save image icon on the navigation
toolbar it saves the waveform and legend BUT not the additional
content (the cross and the textbox).
any idea as to how todo this?
|
|
From: Eric F. <ef...@ha...> - 2012-09-06 06:24:44
|
On 2012/09/05 6:17 PM, Paul Tremblay wrote:
> Hmm. I found that mpl handled my datetime objects just fine:
Right, mpl has handled python datetime objects for a long time, but the
numpy array with a datetime dtype is a new and different object, and it
will take a bit of work to support it properly.
Eric
>
> # put the weeks on the x axis
> # dates are datetime.datetime
> ax.plot(dates, defects)
> ax.xaxis.set_major_formatter(
> matplotlib.dates.DateFormatter('%W'))
>
> # create an invisible line in order to
> # create a secondary x axis below
> # the first axis, which just has the month(s)
> newax = fig.add_axes(ax.get_position())
> newax.spines['bottom'].set_position(('outward', 25))
> newax.patch.set_visible(False)
> newax.yaxis.set_visible(False)
> # months are also datetime. However, I filtered out
> # all dates except the first date for each month
> newax.plot_date(months, y, visible=False)
> newax.xaxis.set_major_locator(
> matplotlib.dates.MonthLocator()
> )
> newax.xaxis.set_major_formatter(
> matplotlib.dates.DateFormatter('%b')
> )
>
> On Thu, Sep 6, 2012 at 12:02 AM, Eric Firing <ef...@ha...
> <mailto:ef...@ha...>> wrote:
>
> On 2012/09/05 4:04 PM, Paul Tremblay wrote:
> > I am using numpy 1.7, which I built myself (python3 setup.py
> build). I
> > had a chance to look a bit deeper into matplotlib, which in turn
> forced
> > me to learn a bit of numpy, and now I see that it probably makes more
> > sense to use numpy arrays for my data. Since the default for an
> array is
> > a float, most users won't encounter the problems I did, but a
> warning in
> > a FAQ might solve a few headaches, regardless of how the developers
> > decided to go.
>
> Paul,
>
> numpy 1.7 has a new datetime dtype which probably would be good for your
> use--except that mpl doesn't support it yet. That will be a project for
> mpl v1.3.
>
> Eric
>
> >
> > Thanks for your help.
> >
> > Paul
> >
> > On Tue, Sep 4, 2012 at 3:09 PM, Benjamin Root <ben...@ou...
> <mailto:ben...@ou...>
> > <mailto:ben...@ou... <mailto:ben...@ou...>>> wrote:
> >
> >
> >
> > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay
> > <pau...@gm... <mailto:pau...@gm...>
> <mailto:pau...@gm... <mailto:pau...@gm...>>>
> wrote:
> >
> >
> > The following Python code:
> >
> > >>ax.fill_between(dates, lower, upper, facecolor='gray',
> alpha=0.5)
> >
> > Produces this error with Python 3.2:
> >
> > Traceback (most recent call last):
> > File "scripts/audit_reports_weekly.py", line 150, in
> <module>
> > ax.fill_between(dates, lower, upper, facecolor='gray',
> > alpha=0.5)
> > File
> >
> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/matplotlib/axes.py",
> > line 6741, in fill_between
> > y1 = ma.masked_invalid(self.convert_yunits(y1))
> > File
> >
> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/numpy/ma/core.py",
> > line 2241, in masked_invalid
> > condition = ~(np.isfinite(a))
> > TypeError: ufunc 'isfinite' not supported for the input
> types,
> > and the inputs could not be safely coerced to any supported
> > types according to the casting rule ''safe''
> >
> >
> > [Decimal('3619.900530366609820157812617'), .....]
> >
> > If I change the list from type Decimal to type float, then I
> > don't get the error. Likewise, if I use Python 2.7, I
> also don't
> > get an error.
> >
> > After reading over the error message, I realize that this
> error
> > really results because of numpy, not matplotlib. But I'll go
> > ahead and post this message, in case you are unaware of the
> > problem.
> >
> >
> > Just a quick note, mpl v1.1.x is not officially supported for
> py3k.
> > The upcoming release of v1.2.0 will be the first official release
> > with such support.
> >
> > That being said, it probably would be a good idea to make
> sure where
> > the bug lies for this one (numpy or matplotlib). Which
> version of
> > numpy are you using?
> >
> > Ben Root
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond.
> Discussions
> > will include endpoint security, mobile security and the latest in
> malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >
> >
> >
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> <mailto:Mat...@li...>
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Paul T. <pau...@gm...> - 2012-09-06 04:17:57
|
Hmm. I found that mpl handled my datetime objects just fine:
# put the weeks on the x axis
# dates are datetime.datetime
ax.plot(dates, defects)
ax.xaxis.set_major_formatter(
matplotlib.dates.DateFormatter('%W'))
# create an invisible line in order to
# create a secondary x axis below
# the first axis, which just has the month(s)
newax = fig.add_axes(ax.get_position())
newax.spines['bottom'].set_position(('outward', 25))
newax.patch.set_visible(False)
newax.yaxis.set_visible(False)
# months are also datetime. However, I filtered out
# all dates except the first date for each month
newax.plot_date(months, y, visible=False)
newax.xaxis.set_major_locator(
matplotlib.dates.MonthLocator()
)
newax.xaxis.set_major_formatter(
matplotlib.dates.DateFormatter('%b')
)
On Thu, Sep 6, 2012 at 12:02 AM, Eric Firing <ef...@ha...> wrote:
> On 2012/09/05 4:04 PM, Paul Tremblay wrote:
> > I am using numpy 1.7, which I built myself (python3 setup.py build). I
> > had a chance to look a bit deeper into matplotlib, which in turn forced
> > me to learn a bit of numpy, and now I see that it probably makes more
> > sense to use numpy arrays for my data. Since the default for an array is
> > a float, most users won't encounter the problems I did, but a warning in
> > a FAQ might solve a few headaches, regardless of how the developers
> > decided to go.
>
> Paul,
>
> numpy 1.7 has a new datetime dtype which probably would be good for your
> use--except that mpl doesn't support it yet. That will be a project for
> mpl v1.3.
>
> Eric
>
> >
> > Thanks for your help.
> >
> > Paul
> >
> > On Tue, Sep 4, 2012 at 3:09 PM, Benjamin Root <ben...@ou...
> > <mailto:ben...@ou...>> wrote:
> >
> >
> >
> > On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay
> > <pau...@gm... <mailto:pau...@gm...>> wrote:
> >
> >
> > The following Python code:
> >
> > >>ax.fill_between(dates, lower, upper, facecolor='gray',
> alpha=0.5)
> >
> > Produces this error with Python 3.2:
> >
> > Traceback (most recent call last):
> > File "scripts/audit_reports_weekly.py", line 150, in <module>
> > ax.fill_between(dates, lower, upper, facecolor='gray',
> > alpha=0.5)
> > File
> >
> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/matplotlib/axes.py",
> > line 6741, in fill_between
> > y1 = ma.masked_invalid(self.convert_yunits(y1))
> > File
> >
> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/numpy/ma/core.py",
> > line 2241, in masked_invalid
> > condition = ~(np.isfinite(a))
> > TypeError: ufunc 'isfinite' not supported for the input types,
> > and the inputs could not be safely coerced to any supported
> > types according to the casting rule ''safe''
> >
> >
> > [Decimal('3619.900530366609820157812617'), .....]
> >
> > If I change the list from type Decimal to type float, then I
> > don't get the error. Likewise, if I use Python 2.7, I also don't
> > get an error.
> >
> > After reading over the error message, I realize that this error
> > really results because of numpy, not matplotlib. But I'll go
> > ahead and post this message, in case you are unaware of the
> > problem.
> >
> >
> > Just a quick note, mpl v1.1.x is not officially supported for py3k.
> > The upcoming release of v1.2.0 will be the first official release
> > with such support.
> >
> > That being said, it probably would be a good idea to make sure where
> > the bug lies for this one (numpy or matplotlib). Which version of
> > numpy are you using?
> >
> > Ben Root
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >
> >
> >
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Eric F. <ef...@ha...> - 2012-09-06 04:02:22
|
On 2012/09/05 4:04 PM, Paul Tremblay wrote:
> I am using numpy 1.7, which I built myself (python3 setup.py build). I
> had a chance to look a bit deeper into matplotlib, which in turn forced
> me to learn a bit of numpy, and now I see that it probably makes more
> sense to use numpy arrays for my data. Since the default for an array is
> a float, most users won't encounter the problems I did, but a warning in
> a FAQ might solve a few headaches, regardless of how the developers
> decided to go.
Paul,
numpy 1.7 has a new datetime dtype which probably would be good for your
use--except that mpl doesn't support it yet. That will be a project for
mpl v1.3.
Eric
>
> Thanks for your help.
>
> Paul
>
> On Tue, Sep 4, 2012 at 3:09 PM, Benjamin Root <ben...@ou...
> <mailto:ben...@ou...>> wrote:
>
>
>
> On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay
> <pau...@gm... <mailto:pau...@gm...>> wrote:
>
>
> The following Python code:
>
> >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5)
>
> Produces this error with Python 3.2:
>
> Traceback (most recent call last):
> File "scripts/audit_reports_weekly.py", line 150, in <module>
> ax.fill_between(dates, lower, upper, facecolor='gray',
> alpha=0.5)
> File
> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/matplotlib/axes.py",
> line 6741, in fill_between
> y1 = ma.masked_invalid(self.convert_yunits(y1))
> File
> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/numpy/ma/core.py",
> line 2241, in masked_invalid
> condition = ~(np.isfinite(a))
> TypeError: ufunc 'isfinite' not supported for the input types,
> and the inputs could not be safely coerced to any supported
> types according to the casting rule ''safe''
>
>
> [Decimal('3619.900530366609820157812617'), .....]
>
> If I change the list from type Decimal to type float, then I
> don't get the error. Likewise, if I use Python 2.7, I also don't
> get an error.
>
> After reading over the error message, I realize that this error
> really results because of numpy, not matplotlib. But I'll go
> ahead and post this message, in case you are unaware of the
> problem.
>
>
> Just a quick note, mpl v1.1.x is not officially supported for py3k.
> The upcoming release of v1.2.0 will be the first official release
> with such support.
>
> That being said, it probably would be a good idea to make sure where
> the bug lies for this one (numpy or matplotlib). Which version of
> numpy are you using?
>
> Ben Root
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Paul T. <pau...@gm...> - 2012-09-06 02:04:26
|
I am using numpy 1.7, which I built myself (python3 setup.py build). I had
a chance to look a bit deeper into matplotlib, which in turn forced me to
learn a bit of numpy, and now I see that it probably makes more sense to
use numpy arrays for my data. Since the default for an array is a float,
most users won't encounter the problems I did, but a warning in a FAQ might
solve a few headaches, regardless of how the developers decided to go.
Thanks for your help.
Paul
On Tue, Sep 4, 2012 at 3:09 PM, Benjamin Root <ben...@ou...> wrote:
>
>
> On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay <pau...@gm...>wrote:
>
>>
>> The following Python code:
>>
>> >>ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5)
>>
>> Produces this error with Python 3.2:
>>
>> Traceback (most recent call last):
>> File "scripts/audit_reports_weekly.py", line 150, in <module>
>> ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5)
>> File
>> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/matplotlib/axes.py",
>> line 6741, in fill_between
>> y1 = ma.masked_invalid(self.convert_yunits(y1))
>> File
>> "/home/local/ANT/ptrembl/.local/lib/python3.2/site-packages/numpy/ma/core.py",
>> line 2241, in masked_invalid
>> condition = ~(np.isfinite(a))
>> TypeError: ufunc 'isfinite' not supported for the input types, and the
>> inputs could not be safely coerced to any supported types according to the
>> casting rule ''safe''
>>
>>
>> [Decimal('3619.900530366609820157812617'), .....]
>>
>> If I change the list from type Decimal to type float, then I don't get
>> the error. Likewise, if I use Python 2.7, I also don't get an error.
>>
>> After reading over the error message, I realize that this error really
>> results because of numpy, not matplotlib. But I'll go ahead and post this
>> message, in case you are unaware of the problem.
>>
>>
> Just a quick note, mpl v1.1.x is not officially supported for py3k. The
> upcoming release of v1.2.0 will be the first official release with such
> support.
>
> That being said, it probably would be a good idea to make sure where the
> bug lies for this one (numpy or matplotlib). Which version of numpy are
> you using?
>
> Ben Root
>
>
|
|
From: Tony Yu <ts...@gm...> - 2012-09-06 00:16:34
|
On Wed, Sep 5, 2012 at 7:19 PM, Mark Budde <mar...@gm...> wrote: > Hi, > I'm not an expert so please go easy on me. I am using the pyplot lasso > demo, and have got it to work how I would like. I am having a problem, > however, where I cannot get it to work if my python file is not the > main file (where __name__ is not __main__). > > I took the part at the bottom in the "if __name__ == '__main__':" and > put it into a class. Everything works fine if I call the class from > within the same file. However, if I call the class from another file, > the graph loads fine but the lasso tool does not work. Troubleshooting > revealed that LassoManager.onpress is not being called when I click > the mouse. Any suggestions are welcome because this is driving me > crazy! > Thanks, > Mark > > Hi Mark, I can't seem to reproduce your issue, but it's a bit difficult without seeing how exactly you wrapped up the "main" part of the code. Just guessing: maybe the two cases aren't *exactly* the same. Is it possible that you have ``lman`` (the LassoManager instance) defined in the same block of code as ``show`` in one case but not the other? If, for example, ``lman`` is defined in a method of your class, but not saved anywhere then it'll get discarded after the method finishes. So ``show`` would need to be called inside that method, or saved as a class attribute. Like I said, that's just a wild guess. You should paste the class def if you're still having problems. Best -Tony P.S. If you're running matplotlib from Github master, you might be interested in an alternative lasso tool (LassoSelector) that may be simpler to use.: https://github.com/matplotlib/matplotlib/blob/master/examples/widgets/lasso_selector_demo.py |
|
From: Benjamin R. <ben...@ou...> - 2012-09-06 00:15:47
|
On Wednesday, September 5, 2012, Mark Budde wrote: > Hi, > I'm not an expert so please go easy on me. I am using the pyplot lasso > demo, and have got it to work how I would like. I am having a problem, > however, where I cannot get it to work if my python file is not the > main file (where __name__ is not __main__). > > I took the part at the bottom in the "if __name__ == '__main__':" and > put it into a class. Everything works fine if I call the class from > within the same file. However, if I call the class from another file, > the graph loads fine but the lasso tool does not work. Troubleshooting > revealed that LassoManager.onpress is not being called when I click > the mouse. Any suggestions are welcome because this is driving me > crazy! > Thanks, > Mark I can assure you that it does work from a library because I have done that. Most likely it is some minor error in your code. Is it possible to post a simple example to demonstrate your problem? Ben Root |
|
From: Mark B. <mar...@gm...> - 2012-09-05 23:19:31
|
Hi, I'm not an expert so please go easy on me. I am using the pyplot lasso demo, and have got it to work how I would like. I am having a problem, however, where I cannot get it to work if my python file is not the main file (where __name__ is not __main__). I took the part at the bottom in the "if __name__ == '__main__':" and put it into a class. Everything works fine if I call the class from within the same file. However, if I call the class from another file, the graph loads fine but the lasso tool does not work. Troubleshooting revealed that LassoManager.onpress is not being called when I click the mouse. Any suggestions are welcome because this is driving me crazy! Thanks, Mark |
|
From: Sterling S. <sm...@fu...> - 2012-09-05 16:39:41
|
On Sep 4, 2012, at 5:33PM, Jae-Joon Lee wrote:
> On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith <sm...@fu...> wrote:
>> I still do not get black markers. Furthermore, if you try to make a new legend with the result of leg.get_lines(), you will get lines without markers, which leads me to the conclusion I stated in my previous email (which you did not copy)
>>>> I suspect that this is because the legend marker is drawn separately from the legend line to accommodate the numpoints argument of the legend functions. Then the question is how to access these markers if they are separate from the line2d objects in the legend. I didn't even see them in the children of the legend [legend.get_children()].
>
> This is correct. To support legend handle like --o-- (i.e., no markers
> at the ends), lines and markers are drawn as a separate artist. You
> may use something like,
>
> line[0]._legmarker.set_markerfacecolor('black')
> line[1]._legmarker.set_markerfacecolor('black')
>
> I, personally, recommend you to use a proxy artist.
>
> http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist
>
> For example,
>
> You may do something like
>
> import pylab
> pylab.plot(pylab.linspace(0,1,100),marker='o',ls='')
> pylab.plot(pylab.linspace(0,1,100),marker='o',ls='-')
>
> # creates artists for legend purpose only
> l1, = pylab.plot(pylab.linspace(0,1,100), 'ko-')
> l2, = pylab.plot(pylab.linspace(0,1,100), 'ko')
> # remove them from the axes.
> l1.remove()
> l2.remove()
>
> leg=pylab.legend([l1, l2], ["Test 1", "Test 2"], loc='best')
>
> Regards,
>
> -JJ
JJ,
Thank you for responding. I was looking for the _legmarker method, which works great.
Thanks,
Sterling
|
|
From: Jae-Joon L. <lee...@gm...> - 2012-09-05 07:09:02
|
There is no easy way to do it (the extent of axes including the labels
is determined only when the plot is drawn).
And most straight forward way is to define your own artist.
Attached is an one example of such artist. I think it is good to have
such an artist class in matplotlib and I may able to push some
generalized version of this into matplotlib.
On the other hand, your reason to draw a white box is to improve the
visibility of tick labels, I recommend you to use path_effect.
from matplotlib.patheffects import withStroke
plt.setp(axins1.xaxis.get_majorticklabels(),
path_effects=[withStroke(foreground="w", linewidth=3)])
IHTH,
-JJ
On Thu, Aug 16, 2012 at 12:39 AM, Scott Henderson <st...@co...> wrote:
> Hello,
>
> I'm trying to modify the following script to no avail:
> http://matplotlib.github.com/examples/axes_grid/demo_colorbar_with_inset_locator.html
>
> I'd like to have a white background behind the inset colorbar that
> adjusts automatically to figure resizing. I'm thinking of doing this by
> adding a Rectangle patch with the appropriate axes coordinates. What's
> the easiest way get those coordinates (sufficiently big to include the
> ticklabels) & draw the patch?
>
> Thanks,
>
> --
> ---------------
> Scott T. Henderson
> http://www.geo.cornell.edu/eas/gstudent/sth54/contact.html
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Jae-Joon L. <lee...@gm...> - 2012-09-05 05:58:52
|
On Sun, Aug 19, 2012 at 3:41 PM, Peter Combs <pco...@gm...> wrote:
> It seems like draw()ing the text object will reset the size of the BBox...
> Any idea how to fix this? At the moment, I'm experimenting with continually
> drawing, polling the get_width() method, and when it's too small, adding in
> spaces around the text field, but that seems both not to work reliably, and
> be an incredibly boneheaded way to go about it.
>
> I'm using matplotlib v. 1.1.0 if that makes a difference.
>
>
> --------------\
> | text >
> --------------/
> not
> ------\
> | text >
> ------/
A recommended way of doing this is to make a custom BoxStyle,
from matplotlib.patches import BoxStyle
class MyRArrow(BoxStyle.RArrow):
def transmute(self, x0, y0, width, height, mutation_size):
# mutation_size is a fontsize in pixel scale.
total_width = mutation_size*10
dw = (total_width-width)*.5
p = BoxStyle.RArrow.transmute(self, x0-dw, y0, total_width, height,
mutation_size)
return p
ax = subplot(111)
txtobj = ax.text(0.5, 0.5, 'text', ha="center",
bbox=dict(boxstyle=MyRArrow()))
txtobj = ax.text(0.5, 0.3, 'long text', ha="center",
bbox=dict(boxstyle=MyRArrow()))
However, BoxStyle does not know of the axes/figure/renderer, i.e., you
cannot make its width to some fraction of figure width, for example.
If this is what you want, you may need to derive from FancyBboxPatch
as Daniel Hyams suggested.
Regards,
-JJ
|
|
From: Jae-Joon L. <lee...@gm...> - 2012-09-05 05:35:46
|
On Mon, Aug 20, 2012 at 10:50 PM, darkside <in....@gm...> wrote: > I am using zoomed_inset_axes, but the default position overlaps the yticks > and the parent axe ticks, so I am trying: > axins = zoomed_inset_axes(ax, > 3,bbox_to_anchor(0.5,1),bbox_transform=ax.figure.transFigure, loc=2) This is supposed to work, and my quick test did work. Can you post a complete but simple exampl? Regards, -JJ |
|
From: Jae-Joon L. <lee...@gm...> - 2012-09-05 05:27:53
|
I recommend you to use LineCollection as it is rasterized as a single image.
For example,
from matplotlib.collections import LineCollection
d = [np.array([ts[0], ys1]).T for ys1 in ys]
lc = LineCollection(d, color='r', lw=0.5, alpha=0.5,
rasterized=True)
ax.add_collection(lc)
ax.set_xlim(0, 7)
ax.set_ylim(-1, 1)
If you need to stick to plot command somehow, you need to create your
own artist.
There is a similar example,
http://matplotlib.sourceforge.net/examples/pylab_examples/demo_agg_filter.html
Take a look at the FilteredArtistList class. Your draw method should
be something like
def draw(self, renderer):
renderer.start_rasterizing()
for a in self._artist_list:
a.draw(renderer)
renderer.stop_rasterizing()
IHTH,
-JJ
On Wed, Aug 22, 2012 at 2:45 AM, Peter St. John <pet...@gm...> wrote:
> Hi Everyone,
>
> I'm having problems when rasterizing many lines in a plot using the
> rasterized=True keyword using the pdf output.
> Some version info:
> matplotlib version 1.1.1rc
> ubuntu 12.04
> python 2.7.3
>
>
> Here's a basic example that demonstrates my problem:
> # Import matplotlib to create a pdf document
> import matplotlib
> matplotlib.use('Agg')
> from matplotlib.backends.backend_pdf import PdfPages
> pdf = PdfPages('rasterized_test.pdf')
>
> import matplotlib.pylab as plt
>
> # some test data
> import numpy as np
> ts = np.linspace(0,2*np.pi,100) * np.ones((200,100))
> ts += (np.linspace(0, np.pi, 200)[np.newaxis] * np.ones((100,200))).T
> ys = np.sin(ts)
>
> fig = plt.figure()
> ax = fig.add_subplot(111)
> ax.plot(ts[0], ys.T, color='r', lw=0.5, alpha=0.5, rasterized=True)
> pdf.savefig()
>
> pdf.close()
>
>
>
> Essentially, I have a lot (200 in this case) of closely overlapping lines
> which makes the resulting figure (not rasterized) overly difficult to load.
> I would like to rasterize these lines, such that the axis labels (and other
> elements of the plot, not shown) remain vectors while the solution
> trajectories are flattened to a single raster background. However, using the
> code above, the image still takes a long time to load since each trajectory
> is independently rasterized, resulting in multiple layers. (If I open the
> resulting pdf with a program like inkscape, I can manipulate each trajectory
> independently.)
>
> Is it possible to flatten all of the rasterized elements into a single
> layer, so the pdf size would be greatly reduced?
>
> Thanks,
> --Peter
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Jae-Joon L. <lee...@gm...> - 2012-09-05 00:33:57
|
On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith <sm...@fu...> wrote:
> I still do not get black markers. Furthermore, if you try to make a new legend with the result of leg.get_lines(), you will get lines without markers, which leads me to the conclusion I stated in my previous email (which you did not copy)
>>> I suspect that this is because the legend marker is drawn separately from the legend line to accommodate the numpoints argument of the legend functions. Then the question is how to access these markers if they are separate from the line2d objects in the legend. I didn't even see them in the children of the legend [legend.get_children()].
This is correct. To support legend handle like --o-- (i.e., no markers
at the ends), lines and markers are drawn as a separate artist. You
may use something like,
line[0]._legmarker.set_markerfacecolor('black')
line[1]._legmarker.set_markerfacecolor('black')
I, personally, recommend you to use a proxy artist.
http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist
For example,
You may do something like
import pylab
pylab.plot(pylab.linspace(0,1,100),marker='o',ls='')
pylab.plot(pylab.linspace(0,1,100),marker='o',ls='-')
# creates artists for legend purpose only
l1, = pylab.plot(pylab.linspace(0,1,100), 'ko-')
l2, = pylab.plot(pylab.linspace(0,1,100), 'ko')
# remove them from the axes.
l1.remove()
l2.remove()
leg=pylab.legend([l1, l2], ["Test 1", "Test 2"], loc='best')
Regards,
-JJ
|
|
From: Michael D. <md...@st...> - 2012-09-04 23:34:00
|
matplotlib 1.1.1 does not support Python 3.x. You will need to build from git master for the time being. We should also have a 1.2rc out in the next weeks which will support Python 3. On 09/04/2012 07:09 PM, Roy Crihfield wrote: > Attempting to install matplotlib with easy_install for python 3.2.3 on Linux (3.5.3-1-ARCH) fails like so. > > I have the freetype2 and numpy packages as you can see, and I have tried building from source with the same results. > > > > Processing matplotlib-1.1.1.tar.gz > Writing /tmp/easy_install-quuxcl/matplotlib-1.1.1/setup.cfg > Running matplotlib-1.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-quuxcl/matplotlib-1.1.1/egg-dist-tmp-4wc3xh > basedirlist is: ['/usr/local', '/usr'] > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 1.1.1 > python: 3.2.3 (default, Apr 23 2012, 23:14:44) [GCC 4.7.0 > 20120414 (prerelease)] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.6.2 > freetype2: 15.0.9 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.5.12 > Tkinter: no > * TKAgg requires Tkinter > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Mac OS X native: no > Qt: no > Qt4: no > PySide: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: 2.1 > pytz: 2012d > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: 9.06 > latex: no > pdftops: 0.20.3 > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay'] > warning: no files found matching 'KNOWN_BUGS' > warning: no files found matching 'INTERACTIVE' > warning: no files found matching 'MANIFEST' > warning: no files found matching '__init__.py' > warning: no files found matching 'examples/data/*' > warning: no files found matching 'lib/mpl_toolkits' > warning: no files found matching 'LICENSE*' under directory 'license' > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_draw_rect(const Py::Tuple&)': > src/ft2font.cpp:241:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:242:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:243:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:244:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_draw_rect_filled(const Py::Tuple&)': > src/ft2font.cpp:284:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:285:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:286:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:287:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_as_str(const Py::Tuple&)': > src/ft2font.cpp:308:49: error: 'PyString_FromStringAndSize' was not declared in this scope > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_width(const Py::Tuple&)': > src/ft2font.cpp:432:12: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_height(const Py::Tuple&)': > src/ft2font.cpp:441:12: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In constructor 'Glyph::Glyph(FT_FaceRec_* const&, FT_GlyphRec_* const&, size_t)': > src/ft2font.cpp:452:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:453:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:454:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:455:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:456:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:457:35: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:458:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:460:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:461:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:467:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:468:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:469:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:470:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In constructor 'FT2Font::FT2Font(std::string)': > src/ft2font.cpp:933:32: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:936:32: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:937:32: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:938:32: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:939:32: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:940:32: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:944:25: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:948:33: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:951:19: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:952:19: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:953:19: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:954:19: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:956:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:957:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:958:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:959:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:960:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:961:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:962:40: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::set_charmap(const Py::Tuple&)': > src/ft2font.cpp:1078:13: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_kerning(const Py::Tuple&)': > src/ft2font.cpp:1166:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1167:17: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1168:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1173:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1179:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1183:16: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_num_glyphs(const Py::Tuple&)': > src/ft2font.cpp:1321:12: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_width_height(const Py::Tuple&)': > src/ft2font.cpp:1442:14: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1443:14: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_descent(const Py::Tuple&)': > src/ft2font.cpp:1461:12: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_glyph_name(const Py::Tuple&)': > src/ft2font.cpp:1657:43: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_charmap(const Py::Tuple&)': > src/ft2font.cpp:1683:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_sfnt(const Py::Tuple&)': > src/ft2font.cpp:1772:18: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1773:18: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1774:18: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1775:18: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_ps_font_info(const Py::Tuple&)': > src/ft2font.cpp:1825:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1826:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:1827:15: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_sfnt_table(const Py::Tuple&)': > src/ft2font.cpp:2008:25: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2009:25: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2011:25: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2012:25: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2014:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2015:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2028:26: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2029:26: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2032:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2033:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2034:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2035:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2036:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2037:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2042:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2043:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2044:42: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object ft2font_module::new_ft2image(const Py::Tuple&)': > src/ft2font.cpp:2097:17: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2098:18: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In function 'void initft2font()': > src/ft2font.cpp:2273:5: error: return-statement with a value, in function returning 'void' [-fpermissive] > src/ft2font.cpp:2276:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2277:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2278:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2279:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2280:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2281:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2282:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2283:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2284:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2285:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2286:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2287:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2288:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2289:29: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2290:30: error: 'Int' is not a member of 'Py' > src/ft2font.cpp:2291:30: error: 'Int' is not a member of 'Py' > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_descent(const Py::Tuple&)': > src/ft2font.cpp:1462:1: warning: control reaches end of non-void function [-Wreturn-type] > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_num_glyphs(const Py::Tuple&)': > src/ft2font.cpp:1322:1: warning: control reaches end of non-void function [-Wreturn-type] > src/ft2font.cpp: In member function 'Py::Object FT2Font::get_kerning(const Py::Tuple&)': > src/ft2font.cpp:1186:1: warning: control reaches end of non-void function [-Wreturn-type] > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_height(const Py::Tuple&)': > src/ft2font.cpp:442:1: warning: control reaches end of non-void function [-Wreturn-type] > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_width(const Py::Tuple&)': > src/ft2font.cpp:433:1: warning: control reaches end of non-void function [-Wreturn-type] > src/ft2font.cpp: In member function 'Py::Object FT2Image::py_as_str(const Py::Tuple&)': > src/ft2font.cpp:310:1: warning: control reaches end of non-void function [-Wreturn-type] > error: Setup script exited with error: command 'gcc' failed with exit status 1 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Roy C. <rs...@gm...> - 2012-09-04 23:09:35
|
Attempting to install matplotlib with easy_install for python 3.2.3 on
Linux (3.5.3-1-ARCH) fails like so.
I have the freetype2 and numpy packages as you can see, and I have
tried building from source with the same results.
Processing matplotlib-1.1.1.tar.gz
Writing /tmp/easy_install-quuxcl/matplotlib-1.1.1/setup.cfg
Running matplotlib-1.1.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-quuxcl/matplotlib-1.1.1/egg-dist-tmp-4wc3xh
basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
matplotlib: 1.1.1
python: 3.2.3 (default, Apr 23 2012, 23:14:44) [GCC 4.7.0
20120414 (prerelease)]
platform: linux2
REQUIRED DEPENDENCIES
numpy: 1.6.2
freetype2: 15.0.9
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.5.12
Tkinter: no
* TKAgg requires Tkinter
Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to "import gtk" in your build/install environment
Mac OS X native: no
Qt: no
Qt4: no
PySide: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 2.1
pytz: 2012d
OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 9.06
latex: no
pdftops: 0.20.3
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri',
'matplotlib.delaunay']
warning: no files found matching 'KNOWN_BUGS'
warning: no files found matching 'INTERACTIVE'
warning: no files found matching 'MANIFEST'
warning: no files found matching '__init__.py'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
warning: no files found matching 'LICENSE*' under directory 'license'
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_draw_rect(const Py::Tuple&)’:
src/ft2font.cpp:241:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:242:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:243:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:244:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_draw_rect_filled(const Py::Tuple&)’:
src/ft2font.cpp:284:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:285:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:286:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:287:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_as_str(const Py::Tuple&)’:
src/ft2font.cpp:308:49: error: ‘PyString_FromStringAndSize’ was not
declared in this scope
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_get_width(const Py::Tuple&)’:
src/ft2font.cpp:432:12: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_get_height(const Py::Tuple&)’:
src/ft2font.cpp:441:12: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In constructor ‘Glyph::Glyph(FT_FaceRec_* const&,
FT_GlyphRec_* const&, size_t)’:
src/ft2font.cpp:452:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:453:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:454:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:455:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:456:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:457:35: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:458:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:460:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:461:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:467:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:468:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:469:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:470:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In constructor ‘FT2Font::FT2Font(std::string)’:
src/ft2font.cpp:933:32: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:936:32: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:937:32: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:938:32: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:939:32: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:940:32: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:944:25: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:948:33: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:951:19: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:952:19: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:953:19: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:954:19: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:956:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:957:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:958:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:959:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:960:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:961:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:962:40: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::set_charmap(const Py::Tuple&)’:
src/ft2font.cpp:1078:13: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_kerning(const Py::Tuple&)’:
src/ft2font.cpp:1166:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1167:17: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1168:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1173:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1179:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1183:16: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_num_glyphs(const Py::Tuple&)’:
src/ft2font.cpp:1321:12: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_width_height(const Py::Tuple&)’:
src/ft2font.cpp:1442:14: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1443:14: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_descent(const Py::Tuple&)’:
src/ft2font.cpp:1461:12: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_glyph_name(const Py::Tuple&)’:
src/ft2font.cpp:1657:43: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_charmap(const Py::Tuple&)’:
src/ft2font.cpp:1683:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_sfnt(const Py::Tuple&)’:
src/ft2font.cpp:1772:18: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1773:18: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1774:18: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1775:18: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)’:
src/ft2font.cpp:1825:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1826:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:1827:15: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_sfnt_table(const Py::Tuple&)’:
src/ft2font.cpp:2008:25: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2009:25: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2011:25: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2012:25: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2014:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2015:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2028:26: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2029:26: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2032:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2033:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2034:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2035:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2036:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2037:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2042:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2043:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2044:42: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
ft2font_module::new_ft2image(const Py::Tuple&)’:
src/ft2font.cpp:2097:17: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2098:18: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In function ‘void initft2font()’:
src/ft2font.cpp:2273:5: error: return-statement with a value, in
function returning 'void' [-fpermissive]
src/ft2font.cpp:2276:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2277:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2278:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2279:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2280:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2281:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2282:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2283:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2284:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2285:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2286:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2287:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2288:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2289:29: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2290:30: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp:2291:30: error: ‘Int’ is not a member of ‘Py’
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_descent(const Py::Tuple&)’:
src/ft2font.cpp:1462:1: warning: control reaches end of non-void
function [-Wreturn-type]
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_num_glyphs(const Py::Tuple&)’:
src/ft2font.cpp:1322:1: warning: control reaches end of non-void
function [-Wreturn-type]
src/ft2font.cpp: In member function ‘Py::Object
FT2Font::get_kerning(const Py::Tuple&)’:
src/ft2font.cpp:1186:1: warning: control reaches end of non-void
function [-Wreturn-type]
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_get_height(const Py::Tuple&)’:
src/ft2font.cpp:442:1: warning: control reaches end of non-void
function [-Wreturn-type]
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_get_width(const Py::Tuple&)’:
src/ft2font.cpp:433:1: warning: control reaches end of non-void
function [-Wreturn-type]
src/ft2font.cpp: In member function ‘Py::Object
FT2Image::py_as_str(const Py::Tuple&)’:
src/ft2font.cpp:310:1: warning: control reaches end of non-void
function [-Wreturn-type]
error: Setup script exited with error: command 'gcc' failed with exit status 1
|