Re: [Matplotlib-users] cx_freeze-ing

2013-08-10 Thread gsal
oh, I got it...needed to include backend package in the cf_freeze setup script. thanks, -- View this message in context: http://matplotlib.1069221.n5.nabble.com/cx-freeze-ing-tp41780p41782.html Sent from the matplotlib - users mailing list archive at Nabble.com. --

Re: [Matplotlib-users] Newbie question - executing commands from a string

2013-08-10 Thread gsal
Hhhhmmm...what exactly do you have in mind? Sure, many of the steps to plot something are the same; to be sure, the data changes and possibly the type of plot... what kind of application are you writing? how much freedom do you really want to give to the user? is the plot specific enough? given th

[Matplotlib-users] cx_freeze-ing

2013-08-09 Thread gsal
So, I have a working program that starts like this: import os import sys import numpy as np from pylab import * from matplotlib.widgets import Slider from matplotlib.patches import FancyBboxPatch, Rectangle but when I cx_freeze it, it complains about some missing backend_ stuff, so, I do: import

Re: [Matplotlib-users] legend on a plot with broken_barh()

2013-01-04 Thread gsal
Great, thank you very much...that did the trick. I don't know why broken_barh does not come in the legend, either; maybe is because of the ambiguity as to which color to use in the legend...a single broken barh command can have several bars with different colors. gsal -- View this messa

Re: [Matplotlib-users] legend on a plot with broken_barh()

2013-01-04 Thread gsal
can you provide an example? The reference help is only two lines! Given: [code] import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.broken_barh([ (110, 30), (150, 10) ] , (10, 9), facecolors='b', label='barh') ax.set_xlim((0,200)) ax.set_ylim((0,5

Re: [Matplotlib-users] Synching sub-plots

2013-01-04 Thread gsal
Maybe you can use the zoom example and the binding method idea so that when you click on some point in the main graph, the zooming graph updates and plots from -50 to +50 days from the point that you clicked on the main graph.

Re: [Matplotlib-users] Persisting navigation toolbar configuration / settings

2013-01-04 Thread gsal
Hhhmmm...I am thinking to may have to implement some interactivity (callbacks) to your plot and be able to, say, click or right click and demand that the current settings be stored or restored from choices previously stored...but this has to be all your doing. -- View this message in context: h

[Matplotlib-users] legend on a plot with broken_barh()

2013-01-04 Thread gsal
So, it looks like broken_barh's do not show up on the legend...is there work around for this? Or, Is there a way to fake a legend? A way to set legend to whatever I want? Thanks, gsal -- View this message in context: http://matplotlib.1069221.n5.nabble.com/legend-on-a-plot-with-b

[Matplotlib-users] SubplotZero with xticklabels "increasing" in both directions

2012-12-15 Thread gsal
Say, I am using: from mpl_toolkits.axes_grid.axislines import SubplotZero Like this: fig = plt.figure() ax1 = SubplotZero(fig,111) fig.add_subplot(ax1) ax1.axis["xzero"].set_axisline_style("-|>") ax1.axis["xzero"].set_visible(True) ax1.axis["yzero"].set_visible(False) Now, I would like to set th

Re: [Matplotlib-users] animation or movie

2012-09-18 Thread gsal
oh, o.k., I will read up on that...for now, with python, I simply plotting one instance at a time and saving every image; then, with ffmpeg, gluing the gluing the images together from the command line. thanks Germán -- View this message in context: http://matplotlib.1069221.n5.nabble.com/ani

[Matplotlib-users] animation or movie

2012-09-18 Thread gsal
Animation/movie advice. So, earlier, I got some help in finding out about pcolorfast that allowed me to plot some data as a nice contour. Now, I would like to get fancier and actually take a look as such contour as it varies with time... how to go about it? some kind of animation? or movie? If

Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread gsal
Wonderful...pcolor is doing the job without processing, it takes exactly what I already have...the n+1 values for x and y coordinates defining the boundaries of the cells and the nxn matix itself. pcolormesh and pcolorfast also work. Thank you very much. -- View this message in context: h

[Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread gsal
Hi, everybody: I don't have experience with images or contours and need some help plotting a 'z' quantity for given x,y coordinates. What are the choices? Here is a small sample of the data: The first row has the i-th x-coordinate at which the field starts to have the value [i,j]. The first

[Matplotlib-users] Frame all around

2012-09-01 Thread gsal
Say, how to have a frame all around the plots? I just tried: fig = plt.figure(edgecolor='r', linewidth=3.0, frameon=True) but do not seem to have any effect. thanks, gsal -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Frame-all-around-tp38762.html

Re: [Matplotlib-users] axes3d, initial azimuth and elevation

2012-07-14 Thread gsal
got it, thanks. -- View this message in context: http://old.nabble.com/axes3d%2C-initial-azimuth-and-elevation-tp34161970p34162843.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Live Secur

[Matplotlib-users] axes3d, initial azimuth and elevation

2012-07-14 Thread gsal
move it around to my liking, the lower right corner of the window displays: "azimuth=20 deg, elevation=35 deg... ...how can I achieve my desired azimuth, elevation from the beginning? is it possible to set it up? I search the on-line docs and found nothing. thanks, gsal -- View this

Re: [Matplotlib-users] sample to contribute to mpl gallery

2012-03-21 Thread gsal
I liked the plot very much, too. I want to start using python and matplotlib for my everyday engineering calculations and could use any handy matplotlib samples. This in particular looks great, compare to the copied-and-copied-and-copied-over black-and-white scanned-in plot in the design manual

Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-17 Thread gsal
o.k., here is some minimal code...what am I doing wrong? Within the picker (def pkr)...I would like to be able to see the mouseevent.key value, but this is always None...is this the expected behaviour? Is mouseevent.key not set at this point? Anye hints would be greatly appreciated. [code] imp

Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread gsal
I don't think so, I thought I paid attention when I noticed the choice between 'subplot' and 'subplots'. In any case, now there does not seem to be a choice, there is no 'subplots'...there is only 'subplot'...was this page modified? 'cause the Last Updated notice at the bottom of the page still s

Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread gsal
It does come up for me. -- View this message in context: http://old.nabble.com/missing-documentation-on-homepage%3A-subplots-tp33496068p33496313.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread gsal
Here are some imports: # PyQt4 modules from PyQt4.QtCore import * from PyQt4.QtGui import * # matplotlib modules import matplotlib.patches as mpathes import matplotlib.text as mtext import matplotlib.lines as mlines from matplotlib.path import Path from matplotlib.collections import Li

Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread gsal
Here are some imports: # PyQt4 modules from PyQt4.QtCore import * from PyQt4.QtGui import * # matplotlib modules import matplotlib.patches as mpathes import matplotlib.text as mtext import matplotlib.lines as mlines from matplotlib.path import Path from matplotlib.collections import LineCollec

[Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread gsal
Say, on Windows, the mouseevent.key correctly comes in as control, shift, or a letter...on Linux, it does notI am always getting None. is this a known problem with known solution? thanks, gsal -- View this message in context: http://old.nabble.com/matplotlib-picking-mouseevent.key

Re: [Matplotlib-users] access to my underlying data from within picker or pick_handler

2012-03-13 Thread gsal
Thanks. That did the trick. -- View this message in context: http://old.nabble.com/access-to-my-underlying-data-from-within-picker-or-pick_handler-tp33492013p33494708.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

[Matplotlib-users] access to my underlying data from picker of pick_handler

2012-03-12 Thread gsal
I am trying to change the underlying data for my plot via a pick event, except that the matplotlib examples for picking show a couple of functions with predefined signatures and I can't seem to figure out how to modify my data from within those functions...how to do it? Here is a minimal example

Re: [Matplotlib-users] Set various parameters of a plot window.

2012-03-11 Thread gsal
I am not quite sure what you are asking, but, can you simply just add your own attribute to the window objects? Python is friendly that way, you know? It's dynamic. -- View this message in context: http://old.nabble.com/Set-various-parameters-of-a-plot-window.-tp33479160p33480317.html Sent fro

Re: [Matplotlib-users] Runtime error with matplotlib in IDLE

2012-03-11 Thread gsal
Don't have a solution; I was just wondering if you have tried something else, like using ipython instead of IDLE. ipython may be better suited for threading and working with pylab, etc. -- View this message in context: http://old.nabble.com/Runtime-error-with-matplotlib-in-IDLE-tp33478456p3348

Re: [Matplotlib-users] legend not draggable when secondary y-axis present

2012-02-05 Thread gsal
Yeap, that did the trick. Thanks. -- View this message in context: http://old.nabble.com/legend-not-draggable-when-secondary-y-axis-present-tp33163397p33266687.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

[Matplotlib-users] legend not draggable when secondary y-axis present

2012-01-18 Thread gsal
legend is draggable but I am not getting to it? gsal -- View this message in context: http://old.nabble.com/legend-not-draggable-when-secondary-y-axis-present-tp33162008p33162008.html Sent from the matplotlib - users mailing list archive at Nabble.com