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
(10) |
2
(17) |
3
(14) |
4
(28) |
5
(23) |
6
(12) |
7
(3) |
8
(11) |
9
(29) |
10
(31) |
11
(9) |
12
(35) |
13
(3) |
14
(9) |
15
(16) |
16
(14) |
17
(10) |
18
(7) |
19
(3) |
20
|
21
(4) |
22
(6) |
23
(14) |
24
(16) |
25
(10) |
26
(5) |
27
(4) |
28
(8) |
29
(19) |
30
(21) |
|
|
|
|
Awesome, thanks. That works perfectly. Chris On Sun, Jun 28, 2009 at 12:16 AM, Jae-Joon Lee<lee...@gm...> wrote: > sorry. > As guillaume has mentioned, you need to install mpl from svn. > > Here is some workaround you can try. I guess it would work with 0.98.5.3. > Basically, you create a separate axes for a legend. > > ax1 = axes([0.1, 0.2,0.8, 0.7]) > p1, = ax1.plot([1,2,3]) > p2, = ax1.plot([3,2,1]) > > ax2 = axes([0.1, 0.1, 0.8, 0.01], frameon=False) > ax2.xaxis.set_visible(False) > ax2.yaxis.set_visible(False) > l = ax2.legend([p1, p2], ["Legend1", "Legend2"], mode="expand", ncol=2, > borderaxespad=0.) > > > -JJ > > > > On Sat, Jun 27, 2009 at 6:00 PM, Chris Spencer<chr...@gm...> wrote: >> Thanks. Is that some sort of blending edge feature? I just installed >> 0.98.5.3, but the sample code gives me the error: >> >> TypeError: __init__() got an unexpected keyword argument 'bbox_to_anchor' >> >> On Thu, Jun 25, 2009 at 10:20 PM, Jae-Joon Lee<lee...@gm...> wrote: >>> The linked page below shows how you put the legend above the graph. >>> >>> http://matplotlib.sourceforge.net/users/plotting/legend.html#legend-location >>> >>> You can put it below the axes by adjusting the bbox_to_anchor parameter. >>> Try something like >>> bbox_to_anchor=(0., -0.1, 1., -0.1), loc=1 >>> >>> Make sure to adjust the suplot parameter (or axes location) to make >>> enough room for the legend. >>> >>> -JJ >>> >>> >>> >>> On Thu, Jun 25, 2009 at 9:22 PM, Chris Spencer<chr...@gm...> wrote: >>>> How do you show the legend below the graph, so it doesn't overlap at >>>> all with the graph? The docs for the legend() "loc" parameter only >>>> seem to specify where *on* the graph you want it to show, which is >>>> driving me nuts because even using "best", it usually hides some of my >>>> data. >>>> >>>> I want to see *all* of my graph, as well as the legend. Is there any >>>> way to do this with pylab? >>>> >>>> Any help is appreciated. >>>> >>>> Chris >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>> >> >
Hi matplotlib_users ! I'm David from Berlin, and believe I'm experiencing some problem with the SubplotHost module: I'm generating graphs from hudge databases of cpu and ethernet statistics, and I wanted to mix several graphs concerning ethernet statistics in the same figure, with time as x axis, and bytes-in, bytes-out, packets-in, packets-out and number of collisions as three different y axes, with three different scale. I took the inspiration from for the x axes and from http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html for the y axes The following code is a synthetic reproduction of the problem I'm experiencing (it is also attached): from matplotlib.dates import date2num from matplotlib import pyplot from matplotlib import pylab from mpl_toolkits.axes_grid.parasite_axes import SubplotHost from datetime import datetime dates = [ 733581.20833333337, 733581.20837962965, 733581.20842592593, 733581.20847222221, 733581.20851851848, 733581.20855324075, 733581.20858796302, 733581.2086342593, 733581.20866898145, 733581.20871527772] rxB = [054L, 130L, 144L, 54L, 36L, 9L, 35L, 43L, 85L, 43L] txB = [4L, 9L, 9L, 5L, 4L, 4L, 4L, 5L, 6L, 5L] rxP = [77, 228, 251, 112, 77, 42, 75, 97, 147, 91] txP = [61, 177, 188, 90, 61, 40, 64, 76, 113, 77] col = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0] ethPlot = pyplot fig = ethPlot.figure() host = SubplotHost(fig, 111) host.set_ylabel("kB/s") host.set_xlabel("Time") par1 = host.twinx() par2 = host.twinx() par1.set_ylabel("Packets/s") par2.axis["right"].set_visible(False) offset = 60, 0 new_axisline = par2.get_grid_helper().new_fixed_axis par2.axis["right2"] = new_axisline(loc="right", axes=par2, offset=offset) par2.axis["right2"].label.set_visible(True) par2.axis["right2"].set_label("Collisions") par1.set_ylim(0, 6000) par2.set_ylim(0, 7000) host.axis([ dates[0], ( dates[0] + 0.041 ), -7000, 7000]) par1.axis([ dates[0], ( dates[0] + 0.041 ), -10000, 10000]) par2.axis([ dates[0], ( dates[0] + 0.041 ), -700, 700]) fig.add_axes(host) ethPlot.subplots_adjust(right=0.75) drawRxByt, = host.plot_date(dates, rxB, 'g', tz=None, xdate=True, ydate=False, label="kB/s in") drawTxByt, = host.plot_date(dates, txB, 'b', tz=None, xdate=True, ydate=False, label="kB/s out") drawRxPaq, = par1.plot_date(dates, rxP, 'm', tz=None, xdate=True, ydate=False, label="packets/s in") drawTxPaq, = par1.plot_date(dates, txP, 'y', tz=None, xdate=True, ydate=False, label="packets/s out") drawColls, = par2.plot_date(dates, col, 'r', tz=None, xdate=True, ydate=False, label="collisions") fig.autofmt_xdate() host.set_xlabel("Time") host.set_ylabel("kB/s") par1.set_ylabel("Packets/s") host.legend() host.axis["left"].label.set_color(drawRxByt.get_color()) host.axis["left"].label.set_color(drawTxByt.get_color()) par1.axis["right"].label.set_color(drawRxPaq.get_color()) par1.axis["right"].label.set_color(drawtxPaq.get_color()) par2.axis["right2"].label.set_color(drawColls.get_color()) ethPlot.draw() pylab.savefig( './test.png', dpi=(640/8)) Maybe I do something wrong somewhere here, but other scripts that do the same for a single graphwork like a charm. So it's not a question of dataType or something. To compare with a working code, here is the first version of the fuction that does the job on single graphs without any problem : def drawEthGraph(filename, hdates, rxP, txP, rxB, txB, col): ethPlot = pyplot fig = ethPlot.figure() ax = fig.add_subplot(111) ax.plot_date(hdates, rxP, 'g', None, True, False) ax.plot_date(hdates, txP, 'b', None, True, False) ax.plot_date(hdates, rxB, 'g', None, True, False) ax.plot_date(hdates, txB, 'b', None, True, False) ax.plot_date(hdates, col, 'r', None, True, False) ax.axis([ hdates[0], ( hdates[0] + 0.042 ), -7000, 7000]) ax.grid(True) fig.autofmt_xdate() pylab.savefig( filename, dpi=(640/8)) I don't think I understand the whole process of generation, but I thought at least at the beginnig I was having a good feeling with this API. Now I wonder how to go around this. Maybe you'll have an idea :-o Best regards DvD
I just wanted to add: if i simply set the font to Arial, using rc('font',**{'family':'sans-serif','sans-serif':['Arial']}) then it works. But the same call with Helvetica still defaults to that Bitstream/default font of matplotlib. any idea why this might be? could matplotlib be confusing helvetica with bitstream? On Sun, Jun 28, 2009 at 11:28 AM, per freem <per...@gm...> wrote: > hi, > > i am trying to use the Helvetica font on matplotlib. i am using mac os x > (so i definitely have helvetica installed) with version 0.98.5.2 of > matplotlib. my code is: > > from scipy import * > import matplotlib > matplotlib.use('PDF') > from matplotlib import rc > import matplotlib.pyplot as plt > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > plt.hist(rand(100)) > xlabel(r"My x axis $\alpha$") > ylabel(r"My y axis $\beta$") > > i verified that plt.rcParams gets modified to use 'Helvetica' as the value > for font.family, etc. but i still get the default font used in all of these > figures. i tried using the PS backend using matplotlib.use('PS') but the > problem persists. i am interested in getting out PDFs that use helvetica > everywhere. > > does anyone know how to fix this? thank you. >
hi, i am trying to use the Helvetica font on matplotlib. i am using mac os x (so i definitely have helvetica installed) with version 0.98.5.2 of matplotlib. my code is: from scipy import * import matplotlib matplotlib.use('PDF') from matplotlib import rc import matplotlib.pyplot as plt rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['font.family'] = 'Helvetica' plt.hist(rand(100)) xlabel(r"My x axis $\alpha$") ylabel(r"My y axis $\beta$") i verified that plt.rcParams gets modified to use 'Helvetica' as the value for font.family, etc. but i still get the default font used in all of these figures. i tried using the PS backend using matplotlib.use('PS') but the problem persists. i am interested in getting out PDFs that use helvetica everywhere. does anyone know how to fix this? thank you.
per freem <per...@gm...> writes: > you're right, i don't need to use "usetex" -- i removed it, but the problem > still persists. here is the pdf that it generates (code below). any idea > what is happening here? thanks very much for your help. The file you sent was not generated by the pdf backend but by "Mac OS X 10.5.6 Quartz PDFContext", which probably means that the OS X backend saves pdf files using the OS X machinery and not the pdf backend. Indeed the formulas look like bitmaps. > from scipy import * > import matplotlib.pyplot as plt > from matplotlib import rc > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > import matplotlib > matplotlib.use('PDF') You are trying to use the pdf backend, but the last line quoted above has no effect because you have already imported pyplot, which causes the backend to be set as directed by your matplotlibrc file. Any call to matplotlib.use needs to be done before you import pyplot. -- Jouni K. Seppänen http://www.iki.fi/jks
per freem <per...@gm...> writes: > i am using matplotlib 0.98.5.2 on Mac OS X. i am plotting a histogram > and then saving it as .pdf. The x and y labels use some symbols from > latex, and i have useTex set to true in my rcParams. Do you really need usetex? Matplotlib's usual mathtext engine is pretty good and doesn't require any external programs. > The problem is that myfig.pdf for some reason renders the figure's x > and y labels as *images* rather than vector graphics. Could you send the resulting pdf file to me off-list? -- Jouni K. Seppänen http://www.iki.fi/jks
sorry. As guillaume has mentioned, you need to install mpl from svn. Here is some workaround you can try. I guess it would work with 0.98.5.3. Basically, you create a separate axes for a legend. ax1 = axes([0.1, 0.2,0.8, 0.7]) p1, = ax1.plot([1,2,3]) p2, = ax1.plot([3,2,1]) ax2 = axes([0.1, 0.1, 0.8, 0.01], frameon=False) ax2.xaxis.set_visible(False) ax2.yaxis.set_visible(False) l = ax2.legend([p1, p2], ["Legend1", "Legend2"], mode="expand", ncol=2, borderaxespad=0.) -JJ On Sat, Jun 27, 2009 at 6:00 PM, Chris Spencer<chr...@gm...> wrote: > Thanks. Is that some sort of blending edge feature? I just installed > 0.98.5.3, but the sample code gives me the error: > > TypeError: __init__() got an unexpected keyword argument 'bbox_to_anchor' > > On Thu, Jun 25, 2009 at 10:20 PM, Jae-Joon Lee<lee...@gm...> wrote: >> The linked page below shows how you put the legend above the graph. >> >> http://matplotlib.sourceforge.net/users/plotting/legend.html#legend-location >> >> You can put it below the axes by adjusting the bbox_to_anchor parameter. >> Try something like >> bbox_to_anchor=(0., -0.1, 1., -0.1), loc=1 >> >> Make sure to adjust the suplot parameter (or axes location) to make >> enough room for the legend. >> >> -JJ >> >> >> >> On Thu, Jun 25, 2009 at 9:22 PM, Chris Spencer<chr...@gm...> wrote: >>> How do you show the legend below the graph, so it doesn't overlap at >>> all with the graph? The docs for the legend() "loc" parameter only >>> seem to specify where *on* the graph you want it to show, which is >>> driving me nuts because even using "best", it usually hides some of my >>> data. >>> >>> I want to see *all* of my graph, as well as the legend. Is there any >>> way to do this with pylab? >>> >>> Any help is appreciated. >>> >>> Chris >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >
hi all, i am using matplotlib 0.98.5.2 on Mac OS X. i am plotting a histogram and then saving it as .pdf. The x and y labels use some symbols from latex, and i have useTex set to true in my rcParams. The code is: import matplotlib.pyplot as plt my_fig = plt.figure(figsize=(5,5)), dpi=100) plt.hist(rand(100), 10) plt.xlabel(r"\alpha") plt.ylabel(r"\beta\kappa") plt.savefig('myfig.pdf') The problem is that myfig.pdf for some reason renders the figure's x and y labels as *images* rather than vector graphics. Strangely, the labels of the units on the x and y axes are rendered as vector fonts correctly as they should -- it is only the x and y labels that somehow are wrongly generated as images. how can i make it so everything is generated as a vector graphic in this pdf? thanks very much. i am attaching my rcParams settings below in case it helps: {'agg.path.chunksize': 0, 'axes.axisbelow': False, 'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.formatter.limits': [-7, 7], 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'k', 'axes.labelsize': 'medium', 'axes.linewidth': 1.0, 'axes.titlesize': 'large', 'axes.unicode_minus': True, 'backend': 'MacOSX', 'backend_fallback': True, 'cairo.format': 'png', 'contour.negative_linestyle': 'dashed', 'datapath': '/Library/Python/2.5/site-packages/matplotlib/mpl-data', 'docstring.hardcopy': False, 'figure.autolayout': False, 'figure.dpi': 80, 'figure.edgecolor': 'w', 'figure.facecolor': '0.75', 'figure.figsize': [8.0, 6.0], 'figure.subplot.bottom': 0.10000000000000001, 'figure.subplot.hspace': 0.20000000000000001, 'figure.subplot.left': 0.125, 'figure.subplot.right': 0.90000000000000002, 'figure.subplot.top': 0.90000000000000002, 'figure.subplot.wspace': 0.20000000000000001, 'font.cursive': ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'cursive'], 'font.family': 'sans-serif', 'font.fantasy': ['Comic Sans MS', 'Chicago', 'Charcoal', 'ImpactWestern', 'fantasy'], 'font.monospace': ['Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Andale Mono', 'Nimbus Mono L', 'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace'], 'font.sans-serif': ['Helvetica'], 'font.serif': ['Bitstream Vera Serif', 'DejaVu Serif', 'New Century Schoolbook', 'Century Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 'Nimbus Roman No9 L', 'Times New Roman', 'Times', 'Palatino', 'Charter', 'serif'], 'font.size': 12.0, 'font.stretch': 'normal', 'font.style': 'normal', 'font.variant': 'normal', 'font.weight': 'normal', 'grid.color': 'k', 'grid.linestyle': ':', 'grid.linewidth': 0.5, 'image.aspect': 'equal', 'image.cmap': 'jet', 'image.interpolation': 'bilinear', 'image.lut': 256, 'image.origin': 'upper', 'image.resample': False, 'interactive': False, 'legend.axespad': 0.5, 'legend.borderaxespad': 0.5, 'legend.borderpad': 0.40000000000000002, 'legend.columnspacing': 2.0, 'legend.fancybox': False, 'legend.fontsize': 'large', 'legend.handlelen': 0.050000000000000003, 'legend.handlelength': 2.0, 'legend.handletextpad': 0.80000000000000004, 'legend.handletextsep': 0.02, 'legend.isaxes': True, 'legend.labelsep': 0.01, 'legend.labelspacing': 0.5, 'legend.loc': 'upper right', 'legend.markerscale': 1.0, 'legend.numpoints': 2, 'legend.pad': 0, 'legend.shadow': False, 'lines.antialiased': True, 'lines.color': 'b', 'lines.dash_capstyle': 'butt', 'lines.dash_joinstyle': 'miter', 'lines.linestyle': '-', 'lines.linewidth': 1.0, 'lines.marker': 'None', 'lines.markeredgewidth': 0.5, 'lines.markersize': 6, 'lines.solid_capstyle': 'projecting', 'lines.solid_joinstyle': 'miter', 'maskedarray': False, 'mathtext.bf': 'serif:bold', 'mathtext.cal': 'cursive', 'mathtext.fallback_to_cm': True, 'mathtext.fontset': 'cm', 'mathtext.it': 'serif:italic', 'mathtext.rm': 'serif', 'mathtext.sf': 'sans\\-serif', 'mathtext.tt': 'monospace', 'numerix': 'numpy', 'patch.antialiased': True, 'patch.edgecolor': 'k', 'patch.facecolor': 'b', 'patch.linewidth': 1.0, 'path.simplify': False, 'pdf.compression': 6, 'pdf.fonttype': 3, 'pdf.inheritcolor': False, 'pdf.use14corefonts': False, 'plugins.directory': '.matplotlib_plugins', 'polaraxes.grid': True, 'ps.distiller.res': 6000, 'ps.fonttype': 3, 'ps.papersize': 'letter', 'ps.useafm': False, 'ps.usedistiller': False, 'savefig.dpi': 100, 'savefig.edgecolor': 'w', 'savefig.facecolor': 'w', 'savefig.orientation': 'portrait', 'svg.embed_char_paths': True, 'svg.image_inline': True, 'svg.image_noscale': False, 'text.color': 'k', 'text.dvipnghack': None, 'text.fontangle': 'normal', 'text.fontsize': 'medium', 'text.fontstyle': 'normal', 'text.fontvariant': 'normal', 'text.fontweight': 'normal', 'text.latex.preamble': [''], 'text.latex.unicode': False, 'text.usetex': False, 'timezone': 'UTC', 'tk.pythoninspect': False, 'tk.window_focus': False, 'toolbar': 'toolbar2', 'units': False, 'verbose.fileo': 'sys.stdout', 'verbose.level': 'silent', 'xtick.color': 'k', 'xtick.direction': 'in', 'xtick.labelsize': 'medium', 'xtick.major.pad': 4, 'xtick.major.size': 4, 'xtick.minor.pad': 4, 'xtick.minor.size': 2, 'ytick.color': 'k', 'ytick.direction': 'in', 'ytick.labelsize': 'medium', 'ytick.major.pad': 4, 'ytick.major.size': 4, 'ytick.minor.pad': 4, 'ytick.minor.size': 2}