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
(7) |
2
(12) |
3
(7) |
4
(23) |
5
(5) |
6
(7) |
7
(4) |
|
8
(7) |
9
(25) |
10
(17) |
11
(25) |
12
(11) |
13
(8) |
14
(6) |
|
15
(1) |
16
(22) |
17
(11) |
18
(12) |
19
(22) |
20
(32) |
21
(9) |
|
22
(4) |
23
(16) |
24
(5) |
25
(9) |
26
(26) |
27
(21) |
28
(14) |
|
29
(6) |
30
(8) |
31
(4) |
|
|
|
|
|
From: Benjamin R. <ben...@ou...> - 2010-08-04 15:02:23
|
On Wed, Aug 4, 2010 at 12:26 AM, Oz Nahum <na...@gm...> wrote: > Hi Everyone ! > This is urgent, I have to finish some plots by tomorrow, and I totally lost > the ability to work with python matplotlib - > "import pylab" > "from pylab import *" > > all yield the following error: > > [code]Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/pymodules/python2.6/pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "/usr/lib/pymodules/python2.6/matplotlib/pylab.py", line 206, in > <module> > from matplotlib import mpl # pulls in most modules > File "/usr/lib/pymodules/python2.6/matplotlib/mpl.py", line 3, in > <module> > from matplotlib import axes > File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 17, in > <module> > import matplotlib.dates as mdates > File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 87, in > <module> > import pytz > File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 32, in > <module> > from pkg_resources import resource_stream > ValueError: bad marshal data > [/code] > > > I am using python-matplotlib on Debian Squeeze. > > Any help would be appreciated ! > Thanks, > > Oz, I see you have filed a bug with the Debian people and have gotten a response. Did their suggestion help you? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591606 Ben Root |
|
From: Jorge S. <jor...@ya...> - 2010-08-04 15:00:57
|
Jorge Scandaliaris <jorgesmbox-ml@...> writes: > > Hi, > I am adding several scatter plots to the same axis, each having a specific > color. When I call legend on the axis it correctly picks all scatter plots with > their symbols and labels, but it doesn't pick up the color. The example below > demonstrates this. What I would like to do is to have in the legend the marker > its color matching that of the set it represents. How would I do this? Answering my own question, I found a way to achieve what I wanted by using a proxy artist as suggested in this thread: http://thread.gmane.org/gmane.comp.python.matplotlib.general/20995/focus=20999 Maybe there's a better approach. I certainly would love legend to pick up on the color used in the scatter plot by its own. Jorge |
|
From: Benjamin R. <ben...@ou...> - 2010-08-04 14:55:48
|
On Tue, Aug 3, 2010 at 11:12 PM, Michael Hannon <jm_...@ya...> wrote: > Greetings. I'm unable to get mathtext to work properly on my linux system: > > # cat /etc/redhat-release > Fedora release 13 (Goddard) > > # uname -a > Linux localhost.localdomain 2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri Jul > 23 > 17:14:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux > > The problem is essentially identical to one that is described in the thread > at: > > > http://www.mail-archive.com/mat...@li.../msg09208.html > > I didn't see a real resolution to the problem in that thread, at least not > one > that applied to me. > > In brief, when I specify a math symbol in a text string, say: > > r'$\pi$' > > I get some "random" character (capital A in this case) at the place where > I'm > supposed to see the Greek letter Pi. > > Furthermore, if I try to coerce the use of the Greek letters by setting > "text.markup" to "tex", either interactively or in the rc file, I get an > error > saying that it's not a valid parameter: > > Bad key "text.markup" on line 161 in ... matplotlibrc > > for instance. This is followed by the message: > > You probably need to get an updated matplotlibrc file from > http://matplotlib.sf.net/_static/matplotlibrc or from the matplotlib > source distribution > > But the file at that link still contains: > > #text.markup:'plain' # Affects how text, such as titles and labels, are > # interpreted by default. > # 'plain': As plain, unformatted text > # 'tex': As TeX-like text. Text between $'s > # will be > # formatted as a TeX math expression. > # This setting has no effect when text.usetex > # is True. > # In that case, all text will be sent to TeX > # for > # processing. > > I don't know what to make of this. I did the following to try to pin down > the > parameters: > > import matplotlib as mpl > import pprint > x = mpl.rcParams.keys() > x.sort() > pprint.pprint(x) > > This produced: > > . > . > . > 'svg.image_noscale', > 'text.color', > 'text.dvipnghack', > 'text.fontangle', > 'text.fontsize', > 'text.fontstyle', > 'text.fontvariant', > 'text.fontweight', > 'text.latex.preamble', > 'text.latex.preview', > 'text.latex.unicode', > 'text.usetex', > 'timezone', > . > . > . > > Indeed, there does not seem to be a "text.markup" in this list. > > I have tried this both with and without an rc file, and I've tried it after > deleting completely my .matplotlib directory. I get the same results in > all > cases. > > OTOH, if I set: > > text.usetex > > to "True", I do get the expected mathematical symbols, albeit after a > noticeable > delay. > > I've got the following two matplotlib packages installed: > > python-matplotlib-0.99.1.2-4.fc13.x86_64 > python-matplotlib-tk-0.99.1.2-4.fc13.x86_64 > > and the system is running Python 2.6.4. > > Any suggestions? Maybe I'm missing a package? > > Thanks. > > -- Mike > > > Mike, Wow, I hadn't realized that Fedora 13 is carrying a rather old version of matplotlib (~2 years old). I should double-check what version is in rawhide and possibly prod some people to get them to choose a more recent version... I am not exactly sure what the cause of your problem is, but you could try uninstalling the Fedora packages of matplotlib and install the latest version from source. Unless someone else has a better idea about what the cause of the problem is? Ben Root |
|
From: Ulf L. <ulf...@ho...> - 2010-08-04 14:42:24
|
Hi,
I have some performance problems when plotting several lines and would
appreciate some comments. My application plots lots of lines (~5000)
of different sizes. The performance bottleneck lies in the following
code snippet:
for s in data.layout.segment:
x = []
y = []
for p in s.part:
for px, py in p.curve_points():
x.append(px)
y.append(py)
axes.plot(x, y, 'g', label = '_nolegend_')
Profiling showed that half of the time was spent in parsing the plot
arguments and most of the other half was spent in
Axes._set_artist_props.
I could speed up the application by using Line2D and
Axes.add_lines. But the only way to come around the time spent in
Axes._set_artist_props that I could come up with is this ugly hack
where I only call Axes.add_line for the first line and after that use
copies that are added directly to Axes.lines.
org_line = None
for s in data.layout.segment:
x = []
y = []
for p in s.part:
for px, py in p.curve_points():
x.append(px)
y.append(py)
if not org_line:
org_line = matplotlib.lines.Line2D(numpy.array(x), numpy.array(y),
color='green', label = '_nolegend_')
axis.add_line(org_line)
else:
line = copy.copy(org_line)
line.set_xdata(numpy.array(x))
line.set_ydata(numpy.array(y))
axis.lines.append(line)
Is there a cleaner way to do this?
Also, my feelings is that matplotlib 1.0 is slower with my original
code than previous version. But I have no numbers to back it up with.
regards
Ulf Larsson
|
|
From: John H. <jd...@gm...> - 2010-08-04 12:56:39
|
On Wed, Aug 4, 2010 at 6:27 AM, thowa <tho...@fo...> wrote:
> I'm afraid, I made myself not clear enough.
> I want to rotate the numbers on the axis (similar to what autofmt_xdate() is
> doing).
> As I understand, autofmt_xdate() is changing the rotation of the numbers for
> all sub-plots.
> But I want to do it only for selected subplots.
>
> Is that is possible?
Yes, if ax is your subplot instance
for label in ax.get_xticklabels():
label.set_rotation(45)
label.set_horizontalalignment('right')
JDH
|
|
From: thowa <tho...@fo...> - 2010-08-04 12:44:01
|
thowa wrote:
>
>
>
> I'm afraid, I made myself not clear enough.
> I want to rotate the numbers on the axis (similar to what autofmt_xdate()
> is doing).
> As I understand, autofmt_xdate() is changing the rotation of the numbers
> for all sub-plots.
> But I want to do it only for selected subplots.
>
> Is that is possible?
>
I have realized, that it is possible.
e.g. by using
plot.set_xticklabels(bins, rotation=45)
Thanks a lot!
--
View this message in context: http://old.nabble.com/Rotated-text-for-selected-subplots-tp29334275p29344561.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Jorge S. <jor...@ya...> - 2010-08-04 12:40:11
|
Hi,
I am adding several scatter plots to the same axis, each having a specific
color. When I call legend on the axis it correctly picks all scatter plots with
their symbols and labels, but it doesn't pick up the color. The example below
demonstrates this. What I would like to do is to have in the legend the marker
its color matching that of the set it represents. How would I do this?
Thanks,
Jorge
PS: I am using matplotlib 1.0
-----------
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
data0 = np.random.rand(10,2)
data1 = np.random.rand(10,2)
data2 = np.random.rand(10,2)
data = [data0, data1, data2]
fig, ax = plt.subplots(1,1)
norm = mpl.colors.Normalize(0,len(data))
for i,d in enumerate(data):
ax.scatter(d.T[0], d.T[1], label='data set ' + str(i), c=np.ones(d.shape[0])*i,
norm=norm)
ax.legend()
plt.show()
-----------
|
|
From: thowa <tho...@fo...> - 2010-08-04 11:27:37
|
John Hunter-4 wrote: > > On Tue, Aug 3, 2010 at 6:23 AM, thowa <tho...@fo...> wrote: >> >> Hi, >> >> I'm pretty new to Matplotlib and I'm really impressed about the >> possibilities !!! >> GREAT WORK !!! >> >> I have a figure with 3 subplots like this. >> >> *-------* *------------------------------* >> | | | | >> | A | | | >> | | | | >> *-------* | | >> | C | >> *-------* | | >> | | | | >> | B | | | >> | | | | >> *-------* *------------------------------* >> >> I want to have the text on the x-axes rotated, but only for subplot A and >> B >> The text for subplot C should remain unrotated. > > All of the text commands "text", "xlabel", "ylabel", "title" take a > rotation keyword argument, so you can pass that in and set the angle > you want. With an existing text instance, you can call the > set_rotation method. > > I'm afraid, I made myself not clear enough. I want to rotate the numbers on the axis (similar to what autofmt_xdate() is doing). As I understand, autofmt_xdate() is changing the rotation of the numbers for all sub-plots. But I want to do it only for selected subplots. Is that is possible? -- View this message in context: http://old.nabble.com/Rotated-text-for-selected-subplots-tp29334275p29343081.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Oz N. <na...@gm...> - 2010-08-04 05:27:13
|
Hi Everyone !
This is urgent, I have to finish some plots by tomorrow, and I totally lost
the ability to work with python matplotlib -
"import pylab"
"from pylab import *"
all yield the following error:
[code]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/pymodules/python2.6/matplotlib/pylab.py", line 206, in
<module>
from matplotlib import mpl # pulls in most modules
File "/usr/lib/pymodules/python2.6/matplotlib/mpl.py", line 3, in <module>
from matplotlib import axes
File "/usr/lib/pymodules/python2.6/matplotlib/axes.py", line 17, in
<module>
import matplotlib.dates as mdates
File "/usr/lib/pymodules/python2.6/matplotlib/dates.py", line 87, in
<module>
import pytz
File "/usr/lib/python2.6/dist-packages/pytz/__init__.py", line 32, in
<module>
from pkg_resources import resource_stream
ValueError: bad marshal data
[/code]
I am using python-matplotlib on Debian Squeeze.
Any help would be appreciated !
Thanks,
--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen
---
Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace
|
|
From: Michael H. <jm_...@ya...> - 2010-08-04 04:13:04
|
Greetings. I'm unable to get mathtext to work properly on my linux system:
# cat /etc/redhat-release
Fedora release 13 (Goddard)
# uname -a
Linux localhost.localdomain 2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri Jul 23
17:14:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
The problem is essentially identical to one that is described in the thread
at:
http://www.mail-archive.com/mat...@li.../msg09208.html
I didn't see a real resolution to the problem in that thread, at least not one
that applied to me.
In brief, when I specify a math symbol in a text string, say:
r'$\pi$'
I get some "random" character (capital A in this case) at the place where I'm
supposed to see the Greek letter Pi.
Furthermore, if I try to coerce the use of the Greek letters by setting
"text.markup" to "tex", either interactively or in the rc file, I get an error
saying that it's not a valid parameter:
Bad key "text.markup" on line 161 in ... matplotlibrc
for instance. This is followed by the message:
You probably need to get an updated matplotlibrc file from
http://matplotlib.sf.net/_static/matplotlibrc or from the matplotlib
source distribution
But the file at that link still contains:
#text.markup:'plain' # Affects how text, such as titles and labels, are
# interpreted by default.
# 'plain': As plain, unformatted text
# 'tex': As TeX-like text. Text between $'s
# will be
# formatted as a TeX math expression.
# This setting has no effect when text.usetex
# is True.
# In that case, all text will be sent to TeX
# for
# processing.
I don't know what to make of this. I did the following to try to pin down the
parameters:
import matplotlib as mpl
import pprint
x = mpl.rcParams.keys()
x.sort()
pprint.pprint(x)
This produced:
.
.
.
'svg.image_noscale',
'text.color',
'text.dvipnghack',
'text.fontangle',
'text.fontsize',
'text.fontstyle',
'text.fontvariant',
'text.fontweight',
'text.latex.preamble',
'text.latex.preview',
'text.latex.unicode',
'text.usetex',
'timezone',
.
.
.
Indeed, there does not seem to be a "text.markup" in this list.
I have tried this both with and without an rc file, and I've tried it after
deleting completely my .matplotlib directory. I get the same results in all
cases.
OTOH, if I set:
text.usetex
to "True", I do get the expected mathematical symbols, albeit after a noticeable
delay.
I've got the following two matplotlib packages installed:
python-matplotlib-0.99.1.2-4.fc13.x86_64
python-matplotlib-tk-0.99.1.2-4.fc13.x86_64
and the system is running Python 2.6.4.
Any suggestions? Maybe I'm missing a package?
Thanks.
-- Mike
|
|
From: Jae-Joon L. <lee...@gm...> - 2010-08-03 23:26:30
|
On Wed, Aug 4, 2010 at 12:11 AM, Benjamin Root <ben...@ou...> wrote:
> I have done some further research on this, and it appears to be a bug of
> some sort. Possibly the Locators are already made by the time the
> ax.set_xticks([]) is called and that function falls on deaf ears because the
> real xaxis is actually a different object for Axes3D. When trying to dig
> down and force zero ticks from being used (using NullLocator), I get errors
> when attempting to draw:
I think this is a bug in Axis3D. In the meantime, one can use
# make ticklabels and ticklines invisible
for a in ax.w_xaxis.get_ticklines()+ax.w_xaxis.get_ticklabels():
a.set_visible(False)
Note that w_xaxis, w_yaxis, w_zaxis correspond to x, y, z axis.
To remove y tickmakes, replace ax.w_xaxis with ax.w_yaxis.
Regards,
-JJ
|
|
From: Jae-Joon L. <lee...@gm...> - 2010-08-03 23:12:14
|
On Wed, Aug 4, 2010 at 2:21 AM, R. Padraic Springuel
<R.S...@um...> wrote:
> Things I've tried:
> Adding a size keyword argument to the set_xlabel and set_ylabel commands
> (both numerical and keywords). No errors are raised, but nothing is
> changed on the plot.
>
> Adding host.axis["left"].set_size(24) and
> par.axis["right"].set_size('large'), to the code. This raises an
> AttributeError: 'AxisArtist' object has no attribute 'set_size'
>
> Adding host.set_size(24) and par.set_size('large') to the code. This
> raises an AttributeError: 'AxesHostAxes' object has no attribute 'set_size'
>
> Any suggestions for how to get the font size larger?
host.axis["left"].major_ticklabels.set_size(24)
or
host.axis["left"].label.set_size(24)
should work.
On the other hand, if you're using matplotlib v1.0 or later, I
recommend you to use "axes_grid1" instead of "axes_grid". With
axes_grid1, set_xlable and set_ylable work as expected. For example,
your code can be something like below.
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1.parasite_axes import HostAxes
fig = plt.figure()
host = HostAxes(fig,[0.08, 0.1, 0.82, 0.83])
fig.add_axes(host)
par = host.twinx()
host.set_xlabel('Dominant Characteristic Threshold', size=24)
host.set_ylabel('Number of Groups', size=24)
par.set_ylabel(' Noise Students', size=24)
# bunch of plot commands
host.set_ylim(0,8)
par.set_ylim(0,0.9)
Regards,
-JJ
|
|
From: R. P. S. <R.S...@um...> - 2010-08-03 17:50:46
|
I'm creating a twined axes figure and have run into a problem. I need
to increase the font size of all the text on the plot, but nothing I do
seems to work.
Here's the code I have to generate the plot:
> fig = figure()
> host = HostAxes(fig,[0.08, 0.1, 0.82, 0.83])
> par = ParasiteAxes(host,sharex=host)
> host.parasites.append(par)
> host.set_xlabel('Dominant Characteristic Threshold')
> host.axis['right'].set_visible(False)
> par.axis['right'].set_visible(True)
> host.set_ylabel('Number of Groups')
> par.set_ylabel('% Noise Students')
> par.axis["right"].major_ticklabels.set_visible(True)
> par.axis["right"].label.set_visible(True)
> fig.add_axes(host)
> p1, = par.plot(dom[-1],noise[-1],'-o')
> p2, = host.plot(dom[-1],ngroups[-1],'-s')
> p3, = par.plot([75,100],[.1,.1],'--',color=p1.get_color(),alpha=0.5)
> p4, = par.plot([75,100],[.2,.2],'--',color=p1.get_color(),alpha=0.5)
> p5, = par.plot([75,100],[.3,.3],'--',color=p1.get_color(),alpha=0.5)
> p6, = par.plot([75,100],[.4,.4],'--',color=p1.get_color(),alpha=0.5)
> p7, = par.plot([75,100],[.5,.5],'--',color=p1.get_color(),alpha=0.5)
> p8, = par.plot([75,100],[.6,.6],'--',color=p1.get_color(),alpha=0.5)
> p9, = par.plot([75,100],[.7,.7],'--',color=p1.get_color(),alpha=0.5)
> p10, = par.plot([75,100],[.8,.8],'--',color=p1.get_color(),alpha=0.5)
> host.set_ylim(0,8)
> par.set_ylim(0,0.9)
> host.axis["left"].label.set_color(p2.get_color())
> par.axis["right"].label.set_color(p1.get_color())
> draw()
> filename = 'Figures/%idomthreshold.png' % aa
> savefig(filename,dpi=150)
Things I've tried:
Adding a size keyword argument to the set_xlabel and set_ylabel commands
(both numerical and keywords). No errors are raised, but nothing is
changed on the plot.
Adding host.axis["left"].set_size(24) and
par.axis["right"].set_size('large'), to the code. This raises an
AttributeError: 'AxisArtist' object has no attribute 'set_size'
Adding host.set_size(24) and par.set_size('large') to the code. This
raises an AttributeError: 'AxesHostAxes' object has no attribute 'set_size'
Any suggestions for how to get the font size larger?
--
R. Padraic Springuel
Research Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: By Appointment Only
|
|
From: Benjamin R. <ben...@ou...> - 2010-08-03 15:12:19
|
On Mon, Jun 14, 2010 at 2:14 AM, Ola Skavhaug <ska...@si...> wrote:
> On Fri, Jun 11, 2010 at 4:50 PM, Benjamin Root <ben...@ou...> wrote:
> > Ola,
> >
> > Just to make sure, have you tried "ax.set_xticks([])"?
>
> Yes, I have tried that, but without success. Looks like the tick-logic
> is overridden for 3d plotting. Or at least, I cannot figure out how it
> works.
>
> Ola
>
> > Ben Root
> >
> >
> >
> > On Fri, Jun 11, 2010 at 3:05 AM, Ola Skavhaug <ska...@si...>
> wrote:
> >>
> >> Hi,
> >>
> >> I'm trying to remove the xtickmarks and ytickmarks from a 3d plot,
> >> without any success.
> >>
> >> The example I experiment with is the following:
> >>
> >> from mpl_toolkits.mplot3d import axes3d
> >> import matplotlib.pyplot as plt
> >>
> >> fig = plt.figure()
> >> ax = axes3d.Axes3D(fig)
> >> X, Y, Z = axes3d.get_test_data(0.05)
> >> cset = ax.contour(X, Y, Z, 16, extend3d=True)
> >> ax.clabel(cset, fontsize=9, inline=1)
> >>
> >> #One try that didn't work
> >> ax.set_xticklabels("")
> >>
> >> plt.show()
> >>
> >> It looks like the final plot ignores all my efforts in turning the
> >> ticks off. Any help on this matter would be greatly appreciated.
> >>
> >> Regards,
> >> --
> >> Ola Skavhaug
> >> Research Programmer
> >> Simula Research Laboratory
> >>
> >>
>
I have done some further research on this, and it appears to be a bug of
some sort. Possibly the Locators are already made by the time the
ax.set_xticks([]) is called and that function falls on deaf ears because the
real xaxis is actually a different object for Axes3D. When trying to dig
down and force zero ticks from being used (using NullLocator), I get errors
when attempting to draw:
Traceback (most recent call last):
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gtk.py",
line 390, in expose_event
self._render_figure(self._pixmap, w, h)
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gtkagg.py",
line 75, in _render_figure
FigureCanvasAgg.draw(self)
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_agg.py",
line 394, in draw
self.figure.draw(self.renderer)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/figure.py",
line 798, in draw
func(*args)
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py",
line 172, in draw
ax.draw(renderer)
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/mpl_toolkits/mplot3d/axis3d.py",
line 231, in draw
newval = get_flip_min_max(xyz1[0], newindex, mins, maxs)
IndexError: list index out of range
Ben Root
|
|
From: John H. <jd...@gm...> - 2010-08-03 12:43:57
|
On Mon, Aug 2, 2010 at 12:51 AM, David Goldsmith <d.l...@gm...> wrote: > Hi! Is there a way to see data values when imaging an array, say, e.g., > when holding the cursor over a point? Take a look at http://matplotlib.sourceforge.net/examples/api/image_zcoord.html JDH |
|
From: John H. <jd...@gm...> - 2010-08-03 12:42:31
|
On Tue, Aug 3, 2010 at 6:23 AM, thowa <tho...@fo...> wrote: > > Hi, > > I'm pretty new to Matplotlib and I'm really impressed about the > possibilities !!! > GREAT WORK !!! > > I have a figure with 3 subplots like this. > > *-------* *------------------------------* > | | | | > | A | | | > | | | | > *-------* | | > | C | > *-------* | | > | | | | > | B | | | > | | | | > *-------* *------------------------------* > > I want to have the text on the x-axes rotated, but only for subplot A and B > The text for subplot C should remain unrotated. All of the text commands "text", "xlabel", "ylabel", "title" take a rotation keyword argument, so you can pass that in and set the angle you want. With an existing text instance, you can call the set_rotation method. Here is a demo that shows some of the rotation modes http://matplotlib.sourceforge.net/examples/pylab_examples/alignment_test.html http://matplotlib.sourceforge.net/examples/pylab_examples/demo_text_rotation_mode.html JDH |
|
From: thowa <tho...@fo...> - 2010-08-03 11:23:14
|
Hi,
I'm pretty new to Matplotlib and I'm really impressed about the
possibilities !!!
GREAT WORK !!!
I have a figure with 3 subplots like this.
*-------* *------------------------------*
| | | |
| A | | |
| | | |
*-------* | |
| C |
*-------* | |
| | | |
| B | | |
| | | |
*-------* *------------------------------*
I want to have the text on the x-axes rotated, but only for subplot A and B
The text for subplot C should remain unrotated.
Is that is possible?
Best regards,
Thorsten
--
View this message in context: http://old.nabble.com/Rotated-text-for-selected-subplots-tp29334275p29334275.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Damon M. <D.M...@wa...> - 2010-08-02 18:41:19
|
So it turns out that
text.latex.preamble : '\usepackage{amsmath},\usepackage{amssymb}'
is not valid, but
text.latex.preamble : \usepackage{amsmath},\usepackage{amssymb}
is valid. Everything works fine now.
Regards,
-- Damon
--------------------------
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
d.m...@wa...
On 2 Aug 2010, at 17:42, Damon McDougall wrote:
> Actually I'm wrong, the error says 'Missing \begin{document}'. Sorry for the spam.
>
> Regards,
> -- Damon
>
> --------------------------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.m...@wa...
>
>
>
> On 2 Aug 2010, at 17:41, Damon McDougall wrote:
>
>> After some playing I have discovered that putting maplotlib.rc('text.latex', preamble='\usepackage{amsmath},\usepackage{amssymb}') fixes the issue of text rendering. However, when putting this value in the ~/.matplotlib/matplotlibrc file, I get the same error saying that \mathbb is undefined. Any ideas?
>>
>> Regards,
>> -- Damon
>>
>> --------------------------
>> Damon McDougall
>> Mathematics Institute
>> University of Warwick
>> Coventry
>> CV4 7AL
>> d.m...@wa...
>>
>>
>>
>> On 2 Aug 2010, at 16:48, Damon McDougall wrote:
>>
>>> Hi all,
>>>
>>> So I'm generating a figure for a paper and I'd like to be able to use something akin to ax.set_ylabel('$\mathbb{TEST}$')
>>>
>>> The weird thing is sometimes I get an error when running the figure generation script (attached) and sometimes I don't. I also can't reproduce when it does or doesn't give an error. In either case, the text doesn't render as blackboard bold text, it's just normal Computer Modern Roman text (see attached figure). Also see attached a python script that reproduces the figure.
>>>
>>> <asd.pdf>
>>>
>>> <script.py>
>>>
>>> <error.txt>
>>>
>>> Any help is greatly appreciated. Thank you.
>>>
>>> Regards,
>>> -- Damon
>>>
>>> --------------------------
>>> Damon McDougall
>>> Mathematics Institute
>>> University of Warwick
>>> Coventry
>>> CV4 7AL
>>> d.m...@wa...
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The Palm PDK Hot Apps Program offers developers who use the
>>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>>> of $1 Million in cash or HP Products. Visit us here for more details:
>>> http://p.sf.net/sfu/dev2dev-palm_______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Damon M. <D.M...@wa...> - 2010-08-02 16:42:49
|
Actually I'm wrong, the error says 'Missing \begin{document}'. Sorry for the spam.
Regards,
-- Damon
--------------------------
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
d.m...@wa...
On 2 Aug 2010, at 17:41, Damon McDougall wrote:
> After some playing I have discovered that putting maplotlib.rc('text.latex', preamble='\usepackage{amsmath},\usepackage{amssymb}') fixes the issue of text rendering. However, when putting this value in the ~/.matplotlib/matplotlibrc file, I get the same error saying that \mathbb is undefined. Any ideas?
>
> Regards,
> -- Damon
>
> --------------------------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.m...@wa...
>
>
>
> On 2 Aug 2010, at 16:48, Damon McDougall wrote:
>
>> Hi all,
>>
>> So I'm generating a figure for a paper and I'd like to be able to use something akin to ax.set_ylabel('$\mathbb{TEST}$')
>>
>> The weird thing is sometimes I get an error when running the figure generation script (attached) and sometimes I don't. I also can't reproduce when it does or doesn't give an error. In either case, the text doesn't render as blackboard bold text, it's just normal Computer Modern Roman text (see attached figure). Also see attached a python script that reproduces the figure.
>>
>> <asd.pdf>
>>
>> <script.py>
>>
>> <error.txt>
>>
>> Any help is greatly appreciated. Thank you.
>>
>> Regards,
>> -- Damon
>>
>> --------------------------
>> Damon McDougall
>> Mathematics Institute
>> University of Warwick
>> Coventry
>> CV4 7AL
>> d.m...@wa...
>>
>>
>>
>> ------------------------------------------------------------------------------
>> The Palm PDK Hot Apps Program offers developers who use the
>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>> of $1 Million in cash or HP Products. Visit us here for more details:
>> http://p.sf.net/sfu/dev2dev-palm_______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Damon M. <D.M...@wa...> - 2010-08-02 16:41:39
|
After some playing I have discovered that putting maplotlib.rc('text.latex', preamble='\usepackage{amsmath},\usepackage{amssymb}') fixes the issue of text rendering. However, when putting this value in the ~/.matplotlib/matplotlibrc file, I get the same error saying that \mathbb is undefined. Any ideas?
Regards,
-- Damon
--------------------------
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
d.m...@wa...
On 2 Aug 2010, at 16:48, Damon McDougall wrote:
> Hi all,
>
> So I'm generating a figure for a paper and I'd like to be able to use something akin to ax.set_ylabel('$\mathbb{TEST}$')
>
> The weird thing is sometimes I get an error when running the figure generation script (attached) and sometimes I don't. I also can't reproduce when it does or doesn't give an error. In either case, the text doesn't render as blackboard bold text, it's just normal Computer Modern Roman text (see attached figure). Also see attached a python script that reproduces the figure.
>
> <asd.pdf>
>
> <script.py>
>
> <error.txt>
>
> Any help is greatly appreciated. Thank you.
>
> Regards,
> -- Damon
>
> --------------------------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.m...@wa...
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm_______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Damon M. <D.M...@wa...> - 2010-08-02 15:48:17
|
Hi all,
So I'm generating a figure for a paper and I'd like to be able to use something akin to ax.set_ylabel('$\mathbb{TEST}$')
The weird thing is sometimes I get an error when running the figure generation script (attached) and sometimes I don't. I also can't reproduce when it does or doesn't give an error. In either case, the text doesn't render as blackboard bold text, it's just normal Computer Modern Roman text (see attached figure). Also see attached a python script that reproduces the figure.
|
|
From: Eduardo G. S. <eg...@as...> - 2010-08-02 15:25:13
|
You could use
pylab.ylabel(r"Profit (\verb+$+)")
or use another font.
Eduardo
On 2 Aug 2010, at 15:50, Benjamin Root wrote:
> Hmmm, if I comment out the .savefig() and use the show(), I get no errors. But I get the same key error if I try to save it as a pdf. However, if I save it as a png, I get no problems.
>
> Maybe it is a problem with the pdf backend?
>
> Ben Root
>
> On Mon, Aug 2, 2010 at 9:29 AM, Richard Lincoln <r.w...@gm...> wrote:
> On 2 August 2010 15:19, Darren Dale <dsd...@gm...> wrote:
> > On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln <r.w...@gm...> wrote:
> >> I am having trouble creating a plot using TeX which has a $ sign in
> >> one of the axis labels. If I run:
> >>
> >> import matplotlib
> >>
> >> matplotlib.rc('font', **{'family': 'serif', 'serif': ['Computer Modern Roman']})
> >> matplotlib.rc('text', usetex=True)
> >>
> >> import pylab
> >>
> >> pylab.figure()
> >> pylab.plot([0.0, 1.0])
> >> pylab.ylabel("Profit (\$)")
> >> pylab.savefig('/tmp/fig.pdf')
> >>
> >>
> >> I get the error:
> >
> > Try:
> >
> > pylab.ylabel(r"Profit (\$)")
> >
>
> No luck. Nor with:
>
> matplotlib.rc('text.latex', unicode=True)
> pylab.ylabel(u"Profit (\$)")
>
|
|
From: Benjamin R. <ben...@ou...> - 2010-08-02 14:58:26
|
On Mon, Aug 2, 2010 at 2:15 AM, David Goldsmith <d.l...@gm...>wrote: > On Sun, Aug 1, 2010 at 10:51 PM, David Goldsmith <d.l...@gm...>wrote: > >> Hi! Is there a way to see data values when imaging an array, say, e.g., >> when holding the cursor over a point? >> >> DG >> > > I found the data_browser.py example - how do I use it if I'm not using > pylab.show, i.e., I'm using oo? > > DG > David, Replace "from pylab import figure, show" with "import matplotlib.pyplot as plt" "fig = figure()" with "fig = plt.figure()" "show()" with "plt.show()" I believe that is all you need to do. Ben Root |
|
From: Benjamin R. <ben...@ou...> - 2010-08-02 14:51:23
|
Hmmm, if I comment out the .savefig() and use the show(), I get no errors.
But I get the same key error if I try to save it as a pdf. However, if I
save it as a png, I get no problems.
Maybe it is a problem with the pdf backend?
Ben Root
On Mon, Aug 2, 2010 at 9:29 AM, Richard Lincoln <r.w...@gm...>wrote:
> On 2 August 2010 15:19, Darren Dale <dsd...@gm...> wrote:
> > On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln <r.w...@gm...>
> wrote:
> >> I am having trouble creating a plot using TeX which has a $ sign in
> >> one of the axis labels. If I run:
> >>
> >> import matplotlib
> >>
> >> matplotlib.rc('font', **{'family': 'serif', 'serif': ['Computer Modern
> Roman']})
> >> matplotlib.rc('text', usetex=True)
> >>
> >> import pylab
> >>
> >> pylab.figure()
> >> pylab.plot([0.0, 1.0])
> >> pylab.ylabel("Profit (\$)")
> >> pylab.savefig('/tmp/fig.pdf')
> >>
> >>
> >> I get the error:
> >
> > Try:
> >
> > pylab.ylabel(r"Profit (\$)")
> >
>
> No luck. Nor with:
>
> matplotlib.rc('text.latex', unicode=True)
> pylab.ylabel(u"Profit (\$)")
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Richard L. <r.w...@gm...> - 2010-08-02 14:29:20
|
On 2 August 2010 15:19, Darren Dale <dsd...@gm...> wrote:
> On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln <r.w...@gm...> wrote:
>> I am having trouble creating a plot using TeX which has a $ sign in
>> one of the axis labels. If I run:
>>
>> import matplotlib
>>
>> matplotlib.rc('font', **{'family': 'serif', 'serif': ['Computer Modern Roman']})
>> matplotlib.rc('text', usetex=True)
>>
>> import pylab
>>
>> pylab.figure()
>> pylab.plot([0.0, 1.0])
>> pylab.ylabel("Profit (\$)")
>> pylab.savefig('/tmp/fig.pdf')
>>
>>
>> I get the error:
>
> Try:
>
> pylab.ylabel(r"Profit (\$)")
>
No luck. Nor with:
matplotlib.rc('text.latex', unicode=True)
pylab.ylabel(u"Profit (\$)")
|