[Matplotlib-users] FOSS for scientists devroom at FOSDEM 2013

2012-11-21 Thread Christos Siopis
Dear members of the Numerical Python ecosystem
(with apologies for cross-postings),

A day-long session (devroom) on Free/Libre and Open Source Software
(FLOSS) for scientists will be held during the next FOSDEM conference,
Brussels, 2-3 February 2013 (http://fosdem.org/2013).

We aim at having a dozen or two short talks introducing projects,
advertising brand new features of established tools, discussing issues
relevant to the development of software for scientific computing, and
touching on the interdependence of FLOSS and open science.

You can find more info on the call for talks at:
http://slayoo.github.com/fosdem2013/

The deadline for sending talk proposals is December 16th 2012.

Please send your submissions or comments to:
foss4scientists-devr...@lists.fosdem.org

Please do forward this message to anyone potentially interested.
Please also let us know if you have any suggestions for what would you
like to hear about in the devroom.

Looking forward to meeting you in Brussels.
Thanks in advance.

The conveners,
Sylwester Arabas, Juan Antonio AƱel, Christos Siopis

P.S. There are open calls for main-track talks, lightning talks, and
stands at FOSDEM as well, see: http://fosdem.org/2013/

--

I would like to add to the above general announcement, that it would be 
great if a main track talk were to be given at FOSDEM about the 
importance of scientific open source software in science and engineering 
today. Main track talks last 50 minutes, and are addressed to all FOSDEM 
participants, something that would add to the visibility of scientific 
software. As an extra bonus, main track speakers have their travel and 
hotel expenses covered by FOSDEM.

I think that the numerical python ecosystem could serve as an 
excellent case study of the data processing and visualisation 
workflow, while adding an interesting historical dimension, being one of 
the oldest projects of its sort.

If you decide to respond to the call for main track speakers, you should 
start here:

https://fosdem.org/2013/call_for_main_speakers/

Please note the December 1 deadline. I urge you to let us (the science 
software devroom conveners) know about your proposed talk, so that we 
may send a word of recommendation to the FOSDEM committee who will make 
the ultimate selection.

We thank you in advance for your expressions of interest and 
participation!

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] histogran2d and polar axis

2012-11-21 Thread David Craig

  
  

  

  
Hi,
  This one has been driving me crazy all day. I have three
  vectors, azimuth, frequency and power, which I would like
  to histogram and plot on a polar axis. I can plot a
  scatter plot this way no problem but the histogram gets
  messed up somehow. An example is below, anybody know how
  to do this properly??
  
  import random
  import numpy as np
  import matplotlib.pyplot as plt
  
  baz = np.zeros((20))
  freq = np.zeros((20))
  pwr = np.zeros((20))
  for x in range(20): 
   baz[x] = random.randint(20,25)*10
   freq[x] = random.randint(1,10)*10
   pwr[x] = random.randint(-10,-1)*10
  
  baz = baz*np.pi/180. 
  
  abins = np.linspace(0,2*np.pi,360) 
  sbins = np.linspace(1, 100) 
  
  H, xedges, yedges = np.histogram2d(baz, freq,
  bins=(abins,sbins), weights=pwr)
  
  plt.figure(figsize=(14,14))
  plt.subplot(111, polar=True)
  #plt.scatter(baz, freq, c=pwr)
  plt.pcolormesh(H)
  plt.show()
  


 
   

  

  

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] svg/image output

2012-11-21 Thread Jeffrey Melloy
I'm currently using matplotlib to generate .PNG files, and the
javascript library flot to do point hover  zooming on the same data
(after click through).  Flot is starting to show its age, and I'd like
a little more control.

I'd like to get to only one library generating graphs, so I only have
to change code in one place.   d3.js looks interesting  dynamic, but
I don't want to just replace one javascript library with another. I
may be able to use d3.js to generate the thumbnails.

My other option is to use matplotlib for the clicking  zooming -- If
i use it to generate an svg and then do clicking, zooming, etc on the
svg, am I in for a world of hurt? I see an html5 backend, but that
hasn't been updated in a year.  I also see the svg_histogram example,
but that didn't work cleanly for me.

Thanks,
Jeff

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] bug with empty values dates

2012-11-21 Thread Jeffrey Melloy
I'm graphing data from a web service, and seem to have stumbled upon a
bug when dates are graphed without any values.

Here's a minimum repro:

import datetime
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)

x = []
st = datetime.datetime(2012,11,21)
while st  datetime.datetime(2012,11,21, 16, 00):
x.append(st)
st = st + datetime.timedelta(minutes=30)
y = [None] * len(x)

ax.plot(x,y)
fig.autofmt_xdate()
plt.show()


The stack trace I get:

Traceback (most recent call last):
  File min_mpl.py, line 15, in module
fig.autofmt_xdate()
  File c:\python26\lib\site-packages\matplotlib\figure.py, line 318,
in autofmt_xdate
for label in ax.get_xticklabels():
  File c:\python26\lib\site-packages\matplotlib\axes.py, line 2507,
in get_xticklabels
self.xaxis.get_ticklabels(minor=minor))
  File c:\python26\lib\site-packages\matplotlib\axis.py, line 1104,
in get_ticklabels
return self.get_majorticklabels()
  File c:\python26\lib\site-packages\matplotlib\axis.py, line 1088,
in get_majorticklabels
ticks = self.get_major_ticks()
  File c:\python26\lib\site-packages\matplotlib\axis.py, line 1186,
in get_major_ticks
numticks = len(self.get_major_locator()())
  File c:\python26\lib\site-packages\matplotlib\dates.py, line 749,
in __call__
self.refresh()
  File c:\python26\lib\site-packages\matplotlib\dates.py, line 758, in refresh
dmin, dmax = self.viewlim_to_dt()
  File c:\python26\lib\site-packages\matplotlib\dates.py, line 530,
in viewlim_to_dt
return num2date(vmin, self.tz), num2date(vmax, self.tz)
  File c:\python26\lib\site-packages\matplotlib\dates.py, line 289,
in num2date
if not cbook.iterable(x): return _from_ordinalf(x, tz)
  File c:\python26\lib\site-packages\matplotlib\dates.py, line 203,
in _from_ordinalf
dt = datetime.datetime.fromordinal(ix)
ValueError: ordinal must be = 1

Adding a 0  the current date stops getting the exception, but the
range seems wildly messed up. (2011 - 2014).

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Is there a way to create a plot and call show() so as not to use the main Qt loop?

2012-11-21 Thread Bob Kestner
This may help you if I understand your basic problem. I use a lot of
interactive plots. This is an example of the work around to show() that I
use:
 
import matplotlib.pyplot as plt
plt.ion()
fig = plt.figure(figsize=(10,8))
ax = fig.add_axes([.15,.1,.8,.65])
ax.plot([1,2,3])
ax.set_title('Fisrt Plot')
raw_input('Enter to close and Continue: ')
plt.close(fig)

When I use this method when connecting to the axes I re-draw the figure
after updating using:
fig.canvas.draw()
I hope this was useful

Regards,
Bob




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Is-there-a-way-to-create-a-plot-and-call-show-so-as-not-to-use-the-main-Qt-loop-tp39653p39846.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users