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
(14) |
|
2
(6) |
3
(10) |
4
(3) |
5
(2) |
6
(3) |
7
(21) |
8
|
|
9
|
10
(4) |
11
(2) |
12
(8) |
13
(17) |
14
(9) |
15
(5) |
|
16
(3) |
17
|
18
(10) |
19
(11) |
20
(3) |
21
(11) |
22
(1) |
|
23
|
24
(2) |
25
|
26
(3) |
27
(6) |
28
|
29
|
|
30
|
|
|
|
|
|
|
|
From: Thomas C. <tca...@gm...> - 2014-11-14 18:14:03
|
Can you provide a reproducible example? There is not really enough here to sort out what is going wrong or why it is going wrong. Ideally the example should be self contained (code + synthetic data). What versions of mpl + numpy + python are you using everywhere? Tom On Fri Nov 14 2014 at 7:25:15 AM Torsten Bronger < br...@ph...> wrote: > Hallöchen! > > I've had a very odd observation today: I call matplotlib 1.3.1 from > Django 1.7 code running on Apache under Ubuntu 14.04. The relevant > code is: > > figure = Figure(frameon=False, figsize=(4, 3)) > canvas = FigureCanvasAgg(figure) > axes = figure.add_subplot(111) > ... > canvas.print_figure(plot_filepath) > > The last command hangs. > > Funny enough, if I run the very same code on Django's testserver, it > works. > > First, I thought of http://stackoverflow.com/questions/22337250 but > this is not the case here. I've really assured that "Agg" is used, > also by providing a proper config file. > > The oddest part is, if I replace in matplotlib/scale.py, line 136, > > return ma.power(10.0, a) / 10.0 > > with > > return np.power(10.0, a) / 10.0 > > it works! > > Can anybody explain this? > > Regards, > Torsten. > > -- > Torsten Bronger Jabber ID: tor...@ja... > or http://bronger-jmp.appspot.com > > > ------------------------------------------------------------ > ------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://pubads.g.doubleclick.net/gampad/clk?id=154624111& > iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Benjamin R. <ben...@ou...> - 2014-11-14 18:07:35
|
Sorry for the delay. Here is an example I came across today using geopandas and pysal: http://nbviewer.ipython.org/github/geopandas/geopandas/blob/master/examples/choropleths.ipynb Cheers! Ben Root On Fri, Oct 24, 2014 at 3:59 PM, Christian Alis <ia...@gm...> wrote: > Hi Ben, > > Yes, indeed. I'm referring to a choropleth. :) > > Thanks, > > Christian > On Oct 24, 2014 8:23 PM, "Benjamin Root" <ben...@ou...> wrote: > >> Do you mean choropleth? http://en.wikipedia.org/wiki/Choropleth_map >> >> On Fri, Oct 24, 2014 at 1:18 PM, ianalis <ia...@gm...> wrote: >> >>> I have been creating chloropleth maps in Python by adding patches and/or >>> polygons in a matplotlib Axes but I'm looking for something easier to >>> use. >>> >>> Ideally, the interface should be similar to how contour maps or >>> pseudocolor >>> plots are created where, at the minimum, only one call to a function is >>> needed to create these plots from data. Colors are automatically assigned >>> and normalized based on values. A colorbar can then be added by calling >>> another function. >>> >>> So far, the closest package seems to be geopandas. Is there an another >>> package that is nearer to what I want? That is, is there a package that >>> can >>> make a (basic) chloropleth of values stored as a dictionary, numpy array >>> or >>> pandas dataframe in one call? >>> >>> I'm willing to contribute code and help develop the chloropleth >>> capability >>> of a package since I currently end up creating my own function and >>> manipulating Axes internals just to create a chloropleth. >>> >>> >>> >>> -- >>> View this message in context: >>> http://matplotlib.1069221.n5.nabble.com/Easiest-way-to-create-a-chloropleth-in-Python-tp44195.html >>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> |
|
From: V. A. S. <so...@es...> - 2014-11-14 15:54:38
|
On 14/11/2014 16:02, Thomas Caswell wrote: > The positions are stored in offsets, the array property is the color > mapping. > Thanks a lot! Armando |
|
From: V. A. S. <so...@es...> - 2014-11-14 14:58:15
|
On 14/11/2014 15:49, Benjamin Root wrote: > It is possible. Those examples were merely showing different ways to > do similar things (and there are more ways to do it, btw). The > techniques can be used for different artist types. I guess the > important question is, do you need the *exact* coordinates of the artist, Just in case my previous mail was confusing. I need the "exact" coordinates of the artist. Armando |
|
From: V. A. S. <so...@es...> - 2014-11-14 14:56:59
|
On 14/11/2014 15:49, Benjamin Root wrote: > It is possible. Those examples were merely showing different ways to > do similar things (and there are more ways to do it, btw). The > techniques can be used for different artist types. I guess the > important question is, do you need the *exact* coordinates of the > artist, or just the coordinates where the mouse clicked? If it is just > the location of the mouse click, then the "xdata" and "ydata" > attributes should be all you need. > > For picking events, the event object will have an "artist" attribute > that will point to the artist that was "picked". For collection type > artists, there should be an "ind" attribute to the event object that > provides the index into the array held by the collection artist. You > can then index the data contained by the collection object already. > Different collection objects, unfortunately, have slightly different > getters. So, while some might have get_xdata() and get_ydata(), others > might have get_points() or something like that. I never get them > straight in my head. > yes, I know the exact coordinates of the marker. For lines is not a problem (using ind) but for a collection I have not found a built-in way. I have made a print(dir(artist)) and the only thing I found interesting was get_array(), but it gave me back None ... Armando |
|
From: Benjamin R. <ben...@ou...> - 2014-11-14 14:50:14
|
It is possible. Those examples were merely showing different ways to do similar things (and there are more ways to do it, btw). The techniques can be used for different artist types. I guess the important question is, do you need the *exact* coordinates of the artist, or just the coordinates where the mouse clicked? If it is just the location of the mouse click, then the "xdata" and "ydata" attributes should be all you need. For picking events, the event object will have an "artist" attribute that will point to the artist that was "picked". For collection type artists, there should be an "ind" attribute to the event object that provides the index into the array held by the collection artist. You can then index the data contained by the collection object already. Different collection objects, unfortunately, have slightly different getters. So, while some might have get_xdata() and get_ydata(), others might have get_points() or something like that. I never get them straight in my head. Cheers! Ben Root <shameless_plug>There will be some useful examples of this and a deeper explanation in my upcoming book on interactive matplotlib. Stay tuned to this mailing list for announcements</shameless_plug> On Fri, Nov 14, 2014 at 9:03 AM, V. Armando Sole <so...@es...> wrote: > Hello, > > Looking at the picking demo: > > http://matplotlib.org/examples/event_handling/pick_event_demo.html > > I see that one can recover the coordinates from the picked artist in the > case of images, and lines. However, in case 3 of the example (scatter > plot) the x and y data have to be supplied in order to retrieve the > coordinates. Is there a way to recover them from the artist? I got the > (wrong?) feeling that the data must be hidden somewhere ... If that is > not possible I'll have to keep a copy of the data used to generate the > artist, but I would not like to do so. > > Any hint? > > Thanks, > > Armando > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: V. A. S. <so...@es...> - 2014-11-14 14:03:20
|
Hello, Looking at the picking demo: http://matplotlib.org/examples/event_handling/pick_event_demo.html I see that one can recover the coordinates from the picked artist in the case of images, and lines. However, in case 3 of the example (scatter plot) the x and y data have to be supplied in order to retrieve the coordinates. Is there a way to recover them from the artist? I got the (wrong?) feeling that the data must be hidden somewhere ... If that is not possible I'll have to keep a copy of the data used to generate the artist, but I would not like to do so. Any hint? Thanks, Armando |
|
From: fcb525 <fc...@al...> - 2014-11-14 12:27:10
|
Most of my issues have been answered through previous posts, but this is such
a specific problem, that I can't find the answer anywhere. I'm new to
matplotlib and therefore learning some of the basic things. My code is:
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.pylab as plb
import matplotlib.font_manager as font_manager
import numpy as np
#Changing font at once
##font = {'family' : 'monospace',
## 'weight' : 'bold',
## 'size' : 18}
##matplotlib.rc('font', **font)
#Changing font individually
axis_font = {'fontname':'Arial', 'size':'18'}
font_path = 'C:\Windows\Fonts\Arial.ttf'
font_prop = font_manager.FontProperties(fname=font_path, size=20)
x = np.genfromtxt('test.txt',
skiprows=(3),usecols=(0),delimiter='',dtype=None)
y =
np.genfromtxt('test.txt',skiprows=(3),usecols=(1),delimiter='',dtype=None)
z =
np.genfromtxt('test.txt',skiprows=(3),usecols=(2),delimiter='',dtype=None)
fig, ax1 = plt.subplots()
ax1.errorbar(x, y, fmt = 'b-', linewidth=3.0, xerr = 0.0, yerr = z,
label="Linear")
ax1.set_xlabel('x-values', **axis_font)
ax1.set_ylabel('linear y-values', color='b', **axis_font)
for tl in ax1.get_yticklabels():
tl.set_color('b')
ax1.legend(loc=2, prop=font_prop)
for label in (ax1.get_xticklabels() + ax1.get_yticklabels()):
label.set_fontname('Arial')
label.set_fontsize(18)
ax2 = ax1.twinx()
y2 = np.exp(x)
ax2.errorbar(x, y2, fmt = 'r-', linewidth=3.0, xerr = 0.0, yerr = 1000*z,
label="Exponential")
ax2.set_ylabel('exponential y-values', color='r', **axis_font)
for tl in ax2.get_yticklabels():
tl.set_color('r')
ax2.legend(loc=1, prop=font_prop)
for label in ax2.get_yticklabels():
label.set_fontname('Arial')
label.set_fontsize(18)
#ax2.ticklabel_format(axis='y', style='sci', scilimits=(-2,2))
ax2.get_yaxis().get_major_formatter().set_powerlimits((2,2))
plb.savefig('test.png', bbox_inches='tight')
plt.show()
Which generates the plot shown below.
test.png <http://matplotlib.1069221.n5.nabble.com/file/n44376/test.png>
Now the question is about the line (two ways of doing the same):
#ax2.ticklabel_format(axis='y', style='sci', scilimits=(-2,2))
ax2.get_yaxis().get_major_formatter().set_powerlimits((2,2))
As can be seen from the plot, the 1e4 has both a different size and color
than the rest of the y-axis. I have tried so many methods, but it just
remains the same no matter. Can anyone help?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-with-ticklabel-tp44376.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|
|
From: Torsten B. <br...@ph...> - 2014-11-14 12:23:22
|
Hallöchen!
I've had a very odd observation today: I call matplotlib 1.3.1 from
Django 1.7 code running on Apache under Ubuntu 14.04. The relevant
code is:
figure = Figure(frameon=False, figsize=(4, 3))
canvas = FigureCanvasAgg(figure)
axes = figure.add_subplot(111)
...
canvas.print_figure(plot_filepath)
The last command hangs.
Funny enough, if I run the very same code on Django's testserver, it
works.
First, I thought of http://stackoverflow.com/questions/22337250 but
this is not the case here. I've really assured that "Agg" is used,
also by providing a proper config file.
The oddest part is, if I replace in matplotlib/scale.py, line 136,
return ma.power(10.0, a) / 10.0
with
return np.power(10.0, a) / 10.0
it works!
Can anybody explain this?
Regards,
Torsten.
--
Torsten Bronger Jabber ID: tor...@ja...
or http://bronger-jmp.appspot.com
|