You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
1
(2) |
2
(1) |
|
3
(17) |
4
(9) |
5
(2) |
6
(5) |
7
(8) |
8
(11) |
9
(6) |
|
10
(6) |
11
(21) |
12
(21) |
13
(17) |
14
(25) |
15
(15) |
16
(2) |
|
17
|
18
(9) |
19
(22) |
20
(25) |
21
(31) |
22
(19) |
23
(2) |
|
24
(5) |
25
(19) |
26
(10) |
27
(13) |
28
(14) |
29
(20) |
30
(5) |
|
31
(9) |
|
|
|
|
|
|
|
From: Eric F. <ef...@ha...> - 2010-01-29 20:14:19
|
Florian Lindner wrote: > Hello, > > I try to use LaTeX in my plot. I follow the instructions from http://www.scipy.org/Cookbook/Matplotlib/UsingTex > > florian@horus:~> cat .matplotlib/matplotlibrc > text.usetex : true > > My plotting code looks like: > > Ma = arange(1.0, 5.0, 0.01) > Ts = [T(i) for i in Ma] # BTW: Is there a way to spare this line? > plot(Ma, Ts, label=r'/frac{T2}{T1}') > > Running the script gives: > > python Stossverlauf.py --verbose-helpful > > $HOME=/home/florian > CONFIGDIR=/home/florian/.matplotlib > matplotlib data path /usr/lib64/python2.6/site-packages/matplotlib/mpl-data > loaded rc file /home/florian/.matplotlib/matplotlibrc > matplotlib version 0.99.1.1 > verbose.level helpful > interactive is False > units is False > platform is linux2 > Using fontManager instance from /home/florian/.matplotlib/fontList.cache > /usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated > from sets import Set > backend Agg version v2.2 > > > and that's all, no plot window appears, the script is finished. If I remove the matplotlibrc everything works fine (of course no LaTeX). > I think all the necessary programs are in place: > > florian@horus:~> which latex > /usr/local/bin/latex > florian@horus:~> which dvipng > /usr/local/bin/dvipng > florian@horus:~> which gs > /usr/bin/gs > > Any idea what could be wrong? In addition to Sebastian's points, make sure your matplotlibrc is specifying an interactive backend (e.g. gtkagg, tkagg, wxagg, qt4agg) if you want the plot to appear on the screen. Eric > > Thanks, > > Florian > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Sebastian B. <web...@th...> - 2010-01-29 20:00:18
|
Florian Lindner wrote:
> Hello,
>
> I try to use LaTeX in my plot....
>
> florian@horus:~> cat .matplotlib/matplotlibrc
> text.usetex : true
>
> My plotting code looks like:
>
> Ma = arange(1.0, 5.0, 0.01)
> Ts = [T(i) for i in Ma] # BTW: Is there a way to spare this line?
not sure what T is. you could try T(Ma); you can do that of course also
directly in the plot command
> plot(Ma, Ts, label=r'/frac{T2}{T1}')
should be backslash and math mode:
plot(Ma, Ts, label=r'$\frac{T2}{T1}$')
legend()
show()
> and that's all, no plot window appears, the script is finished.
you did not show() !
best,
sebastian.
|
|
From: Florian L. <mai...@xg...> - 2010-01-29 19:49:58
|
Hello, I try to use LaTeX in my plot. I follow the instructions from http://www.scipy.org/Cookbook/Matplotlib/UsingTex florian@horus:~> cat .matplotlib/matplotlibrc text.usetex : true My plotting code looks like: Ma = arange(1.0, 5.0, 0.01) Ts = [T(i) for i in Ma] # BTW: Is there a way to spare this line? plot(Ma, Ts, label=r'/frac{T2}{T1}') Running the script gives: python Stossverlauf.py --verbose-helpful $HOME=/home/florian CONFIGDIR=/home/florian/.matplotlib matplotlib data path /usr/lib64/python2.6/site-packages/matplotlib/mpl-data loaded rc file /home/florian/.matplotlib/matplotlibrc matplotlib version 0.99.1.1 verbose.level helpful interactive is False units is False platform is linux2 Using fontManager instance from /home/florian/.matplotlib/fontList.cache /usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated from sets import Set backend Agg version v2.2 and that's all, no plot window appears, the script is finished. If I remove the matplotlibrc everything works fine (of course no LaTeX). I think all the necessary programs are in place: florian@horus:~> which latex /usr/local/bin/latex florian@horus:~> which dvipng /usr/local/bin/dvipng florian@horus:~> which gs /usr/bin/gs Any idea what could be wrong? Thanks, Florian |
|
From: <kc1...@ya...> - 2010-01-29 19:01:23
|
Hello, I am creating a plot with multiple y-axis (up to 6) and twinx works pretty well. The problem is that there are too much wasted spaces used up by the axes. Since I have multiple axes, it cuts into the amount of space available for the plot area. I need to know how I can squeeze some spaces out of the standard axes. First thing I discovered was that I can rotate the tick labels to vertical by: plt.setp(ax.major_ticklabels, rotation="vertical") where ax is my y-axis. But then: (1) How to reduce the space between the tick and the axes label? First I tried to place the label on top but couldn't get that to work. Then I tried to change the position property of the axis label object and that have no effect. So, can somebody please tell me how I can do these 2 things? (2) How to avoid overlapping tick labels? With the way the standard x and y axis are drawn, after I do a vertical rotate of the y tick labels, the first y tick label overlaps with the last x tick label since they are both center aligned. Is there any way to change the alignment of only the first and last tick labels of an axes (while keeping the rest center aligned)? Thanks, -- John Henry |
|
From: Gökhan S. <gok...@gm...> - 2010-01-29 18:42:49
|
One minor issue with the example is once you drag one of the items (legend or text or image) out of the plotting area there is no way to move them back unless you restart the example. Do you get the same defect? On Fri, Jan 29, 2010 at 11:40 AM, Jae-Joon Lee <lee...@gm...> wrote: > I did some refactoring and now the annotation is also draggable.. > I also added an example, > > examples/animation/draggable_legend.py > > Regards, > > -JJ > > > > On Fri, Jan 29, 2010 at 10:28 AM, John Hunter <jd...@gm...> wrote: > > On Thu, Jan 28, 2010 at 10:14 PM, Fernando Perez <fpe...@gm...> > wrote: > >> On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker > >> <Chr...@no...> wrote: > >>> Might I suggest that that be made: > >>> > >>> leg.draggable(True) > >>> leg.draggable(False) > >>> > >> > >> Agreed. My favorite api for toggles is: > >> > >> _state = True > > > > OK, this is committed. Thanks for the suggestion. > > > > JDH > > > > > ------------------------------------------------------------------------------ > > The Planet: dedicated and managed hosting, cloud storage, colocation > > Stay online with enterprise data centers and the best network in the > business > > Choose flexible plans and management services without long-term contracts > > Personal 24x7 support from experience hosting pros just a phone call > away. > > http://p.sf.net/sfu/theplanet-com > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Gökhan |
|
From: Jae-Joon L. <lee...@gm...> - 2010-01-29 18:04:14
|
added blitting support. -JJ On Fri, Jan 29, 2010 at 12:40 PM, Jae-Joon Lee <lee...@gm...> wrote: > I did some refactoring and now the annotation is also draggable.. > I also added an example, > > examples/animation/draggable_legend.py > > Regards, > > -JJ > > > > On Fri, Jan 29, 2010 at 10:28 AM, John Hunter <jd...@gm...> wrote: >> On Thu, Jan 28, 2010 at 10:14 PM, Fernando Perez <fpe...@gm...> wrote: >>> On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker >>> <Chr...@no...> wrote: >>>> Might I suggest that that be made: >>>> >>>> leg.draggable(True) >>>> leg.draggable(False) >>>> >>> >>> Agreed. My favorite api for toggles is: >>> >>> _state = True >> >> OK, this is committed. Thanks for the suggestion. >> >> JDH >> >> ------------------------------------------------------------------------------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the business >> Choose flexible plans and management services without long-term contracts >> Personal 24x7 support from experience hosting pros just a phone call away. >> http://p.sf.net/sfu/theplanet-com >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
|
From: Jae-Joon L. <lee...@gm...> - 2010-01-29 17:41:19
|
I did some refactoring and now the annotation is also draggable.. I also added an example, examples/animation/draggable_legend.py Regards, -JJ On Fri, Jan 29, 2010 at 10:28 AM, John Hunter <jd...@gm...> wrote: > On Thu, Jan 28, 2010 at 10:14 PM, Fernando Perez <fpe...@gm...> wrote: >> On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker >> <Chr...@no...> wrote: >>> Might I suggest that that be made: >>> >>> leg.draggable(True) >>> leg.draggable(False) >>> >> >> Agreed. My favorite api for toggles is: >> >> _state = True > > OK, this is committed. Thanks for the suggestion. > > JDH > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Felix K. <fel...@cf...> - 2010-01-29 16:38:22
|
Hi there, the linestyle mechanism of on-off inks is pretty flexible but still limited to dash dot combinations. It would be a nice feature if you could simply use a marker inside a linestyle instead of a dot for example. This would decouple vertices and markers and add a completely new dimension to linestyles. I have highly resolved, unregularly spaced data which look rather ugly using markers or skipped markers at vertices. Evaluating the complexity to implement this feature I got lost in the code when it comes down to the backend stuff. Which object actually calculates the arc lengths to draw the linestyles? Could that feature be feasible in MPL? Thanks, Felix |
|
From: Jeremy L. <jl...@in...> - 2010-01-29 15:59:13
|
Hello, I'm using matshow to display a sequence of images in a QT window; i.e each time a key is pressed a new image is displayed. The performance seems somewhat sluggish (my baseline here is displaying the images using opencv). So I'm wondering if there are some well established methods for using matshow efficiently that I'm missing. Currently, I'm clearing the figure in between each call to matshow. Does this lead to expensive deallocation and reallocation of memory which could potentially be avoided by simply changing the values stored in memory? Thanks Jeremy Lewi Engineering Scientist The Intellisis Corporation jl...@in... |
|
From: Matthieu B. <mat...@gm...> - 2010-01-29 15:50:34
|
Hi, It seems that the compilation of base_format needs a C++ compiler, but distutils launches icc instead of icpc. This may work with gcc, but with Intel Compiler, I can't force icc to understand C++. I don't know what happened between 0.98.5 and 0.99.2, but I can't use Matplotlib anymore :| Matthieu -- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher |
|
From: John H. <jd...@gm...> - 2010-01-29 15:28:34
|
On Thu, Jan 28, 2010 at 10:14 PM, Fernando Perez <fpe...@gm...> wrote: > On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker > <Chr...@no...> wrote: >> Might I suggest that that be made: >> >> leg.draggable(True) >> leg.draggable(False) >> > > Agreed. My favorite api for toggles is: > > _state = True OK, this is committed. Thanks for the suggestion. JDH |
|
From: Michele M. <mat...@gm...> - 2010-01-29 09:46:33
|
Good job! +1 On Fri, Jan 29, 2010 at 4:14 AM, Fernando Perez <fpe...@gm...>wrote: > On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker > <Chr...@no...> wrote: > > Might I suggest that that be made: > > > > leg.draggable(True) > > leg.draggable(False) > > > > Agreed. My favorite api for toggles is: > > _state = True > > def toggle(state=None): > global _state > old = _state > if state is None: > _state = not _state > else: > _state = state > return old > > ### > > This lets you: > > - toggle without arguments > - set state specifically as needed > - save previous state before setting it if you need to make temporary > changes. > > Cheers, > > f > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Fernando P. <fpe...@gm...> - 2010-01-29 04:14:24
|
On Thu, Jan 28, 2010 at 8:01 PM, Christopher Barker
<Chr...@no...> wrote:
> Might I suggest that that be made:
>
> leg.draggable(True)
> leg.draggable(False)
>
Agreed. My favorite api for toggles is:
_state = True
def toggle(state=None):
global _state
old = _state
if state is None:
_state = not _state
else:
_state = state
return old
###
This lets you:
- toggle without arguments
- set state specifically as needed
- save previous state before setting it if you need to make temporary changes.
Cheers,
f
|
|
From: Christopher B. <Chr...@no...> - 2010-01-29 04:00:21
|
> On Thu, Jan 28, 2010 at 3:48 PM, John Hunter <jd...@gm...
> Cool -- nice example. I added the code to legend.py. Now you can do
>
> leg = ax.legend()
> leg.draggable()
>
> to enable draggable mode. You can repeatedly call this func to toggle
> the draggable state.
Might I suggest that that be made:
leg.draggable(True)
leg.draggable(False)
or
leg.draggable('on')
leg.draggable('off')
or even a property:
leg.draggable = True
or some such. I'd be nice not to have to keep track of the current state.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
|
|
From: Sharaf Al-S. <sfa...@gm...> - 2010-01-29 03:54:45
|
I achieved what I want by putting the colorbar on a separate figure to be included beneath the the two columns of subplots using the LaTeX subfloat environment. Wouldn't have known how to do that without the example, so thanks again. Sharaf On 29 January 2010 03:14, Sharaf Al-Sharif <sfa...@gm...> wrote: > Thank you very much. That was very helpful. > The only thing now is that I have a set of quiver subplots (in a sparate > figure) that I want to keep aligned to the contour subplots. After adding a > horizontal colorbar at the bottom of the contour figure in a way similar to > the example, I lose the alignment with the quiver plots. The easiest way I > could think of to keep the alignment is to add transparent dummy axes > identical in size to the ones I add to the contour figure. The only thing is > that I don't know how to make everything in the axes transparent. I tried > fiddling with set_alpha(), but I couldn't get it done. Any pointers? > > Cheers, > Sharaf > > > On 28 January 2010 19:23, Eric Firing <ef...@ha...> wrote: > >> Sharaf Al-Sharif wrote: >> >>> Hi, >>> I'm trying to make a figure with a column of contourf() subplots using >>> matplotlib.pyplot. The contour plots have the same levels and I only need >>> one color bar. The problem is that I'm not sure how to place the color bar >>> in the figure without messing up the alignment of the subplots. Can someone >>> kindly tell me how this can be done? Thanks in advance. >>> >> >> See this example: >> http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html >> >> and look at the colorbar docstring. >> >> The example is probably more complicated than what you are talking about. >> The basic point, though, is that you need to explicitly make the axes for >> the colorbar, and supply that via the "cax" kwarg, instead of letting >> colorbar make its own axes by stealing space from some other axes object. >> You can still use a set of subplots; you may need to use subplots_adjust to >> scoot them up or over, to leave room for your colorbar. >> >> Eric >> >> >>> Sharaf >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------------ >>> The Planet: dedicated and managed hosting, cloud storage, colocation >>> Stay online with enterprise data centers and the best network in the >>> business >>> Choose flexible plans and management services without long-term contracts >>> Personal 24x7 support from experience hosting pros just a phone call >>> away. >>> http://p.sf.net/sfu/theplanet-com >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> > |
|
From: Sharaf Al-S. <sfa...@gm...> - 2010-01-29 03:14:32
|
Thank you very much. That was very helpful. The only thing now is that I have a set of quiver subplots (in a sparate figure) that I want to keep aligned to the contour subplots. After adding a horizontal colorbar at the bottom of the contour figure in a way similar to the example, I lose the alignment with the quiver plots. The easiest way I could think of to keep the alignment is to add transparent dummy axes identical in size to the ones I add to the contour figure. The only thing is that I don't know how to make everything in the axes transparent. I tried fiddling with set_alpha(), but I couldn't get it done. Any pointers? Cheers, Sharaf On 28 January 2010 19:23, Eric Firing <ef...@ha...> wrote: > Sharaf Al-Sharif wrote: > >> Hi, >> I'm trying to make a figure with a column of contourf() subplots using >> matplotlib.pyplot. The contour plots have the same levels and I only need >> one color bar. The problem is that I'm not sure how to place the color bar >> in the figure without messing up the alignment of the subplots. Can someone >> kindly tell me how this can be done? Thanks in advance. >> > > See this example: > http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html > > and look at the colorbar docstring. > > The example is probably more complicated than what you are talking about. > The basic point, though, is that you need to explicitly make the axes for > the colorbar, and supply that via the "cax" kwarg, instead of letting > colorbar make its own axes by stealing space from some other axes object. > You can still use a set of subplots; you may need to use subplots_adjust to > scoot them up or over, to leave room for your colorbar. > > Eric > > >> Sharaf >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the >> business >> Choose flexible plans and management services without long-term contracts >> Personal 24x7 support from experience hosting pros just a phone call away. >> http://p.sf.net/sfu/theplanet-com >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > |
|
From: Gökhan S. <gok...@gm...> - 2010-01-29 01:09:01
|
On Tue, Jan 26, 2010 at 11:29 AM, Michael Droettboom <md...@st...>wrote:
> per freem wrote:
> > Hi all,
> >
> > To annotate my figures with Greek letters, I use the following:
> >
> > import matplotlib
> > matplotlib.use('PDF')
> > import matplotlib.pyplot as plt
> > from matplotlib import rc
> > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
> > plt.rcParams['ps.useafm'] = True
> > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
> > plt.rcParams['pdf.fonttype'] = 42
> > # plot figure
> > # ...
> > # annotate figure
> > plt.xlabel(r'$\mu$ = 50')
> > plt.ylabel(r'$\sigma$ = 1.5')
> >
> > This makes the equal symbol and everything to the right of it in the
> > Helvetica font, as intended, and the Greek symbols default to the
> > usual TeX font (which I believe is Times New Roman.)
> >
> > How can I make it so the font used for the Greek letters is the
> > "Symbol" font instead? It's important for me not to have it appear in
> > the default Times font of TeX.
> >
> There's information about changing the math font here:
>
> http://matplotlib.sourceforge.net/users/mathtext.html#fonts
>
> You may be able to use "Symbol" as a custom font, but this is untested,
> as far as I know. It would have to contain a Unicode mapping to be usable.
>
> Mike
>
Hello,
Any ideas why this piece is not showing properly?
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pylab import *
plot([1]*5)
xlabel(u'μ = 50')
ylabel(u'σ = 1.5')
show()
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Gökhan
|
|
From: Gökhan S. <gok...@gm...> - 2010-01-29 00:57:36
|
On Thu, Jan 28, 2010 at 3:48 PM, John Hunter <jd...@gm...> wrote: > On Thu, Jan 28, 2010 at 3:02 PM, Adam Fraser <ada...@gm...> > wrote: > > I thought I'd share a solution to the draggable legend problem since > > it took me forever to assimilate all the scattered knowledge on the > > mailing lists... > > Cool -- nice example. I added the code to legend.py. Now you can do > > leg = ax.legend() > leg.draggable() > > to enable draggable mode. You can repeatedly call this func to toggle > the draggable state. > > Thanks, > JDH > Very useful addition for me. One question In [8]: ax.leg<tab> ax.legend ax.legend_ Has the second instance forgotten or left on purpose? > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Gökhan |