Re: [Matplotlib-users] Install Problem

2015-02-13 Thread Scott Sinclair
On 13 February 2015 at 11:47, ralph hosmer wrote: > download: matplotlib-1.4.2-cp32-none-win_amd64.whl [from Sourceforge] > > In the Python Command Line window, I've tried most of the "install > matplotlib" instructions, but continue to get "Syntax Error". > Double-clicking on the downloaded matp

Re: [Matplotlib-users] images for web sites

2013-12-04 Thread Scott Sinclair
On 3 December 2013 14:50, jilguero wrote: > I am trying to make plots by using matplotlib.pyplot (within a Python > script) to be used in a web site (apache, and PHP). I am using Ubuntu > 12.04.3. The script works fine when run from the command line (it is able to > generate the image with "savefi

[Matplotlib-users] Fwd: Basemap plotting data on projection

2013-04-30 Thread Scott Sinclair
Forgot to send to the list -- Forwarded message -- From: Scott Sinclair Date: 30 April 2013 13:20 Subject: Re: [Matplotlib-users] Basemap plotting data on projection To: ChaoYue On 29 April 2013 23:32, ChaoYue wrote: > pdata = np.genfromtxt('pdata.txt&#

Re: [Matplotlib-users] windrose

2013-04-05 Thread Scott Sinclair
On 5 April 2013 03:54, Sudheer Joseph wrote: > Some how I am not getting the trick of the > rect = [0.1, 0.1, 0.8, 0.8] > > I tried > rect1= [0.1,0.1,.4,.4] > and rect2=[.4,.4,.8,.8] > but did not work You don't say exactly what you did, and how it didn't work... If you read http://matplotlib.o

Re: [Matplotlib-users] windrose

2013-04-04 Thread Scott Sinclair
On 4 April 2013 06:45, Sudheer Joseph wrote: > Below is a sample script I got from windrose pack. I would like to > place 2 windroses side by side ... > > from windrose import WindroseAxes > from matplotlib import pyplot as plt ... > def new_axes(): > fig = plt.figure(figsize=(8, 8)

Re: [Matplotlib-users] ANN: basemap-1.0.5

2012-08-06 Thread Scott Sinclair
On 7 August 2012 03:10, Jeff Whitaker wrote: > Available for download at > https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.5/ Just a note to anyone experiencing problems building against GEOS 3.3.3 installed from the ubuntu-gis-unstable PPA on Ubuntu. The naming

Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-23 Thread Scott Sinclair
On Feb 23, 2012 1:39 PM, wrote: > > should I reinstall numpy? No need. You should be able to build matplotlib without sudo and then install with sudo python setup.py build sudo python setup.py install Cheers, Scott -- V

Re: [Matplotlib-users] Script hanging during plot of Runge-Kutta

2012-02-21 Thread Scott Sinclair
On 20 February 2012 07:08, surfcast23 wrote: > > Hi I wrote the following script, but it hangs right after plt.show(). I would > really appreciate it if someone could take a look and let me know where I'm > messing up. Thanks in advance Your script works fine for me. It's just that on the first p

Re: [Matplotlib-users] I cannot download the matplotlib

2012-02-14 Thread Scott Sinclair
gt; > في 14/02/2012، الساعة 2:48 AM، كتب Scott Sinclair > : > > Hi Fadhah, > > If you'd like someone to help. You'll need to explain in more detail, what > steps you're trying and what's going wrong. > > Cheers, > Scott > > On Feb 13, 2012

Re: [Matplotlib-users] ticks in defined place?

2012-01-11 Thread Scott Sinclair
On 11 January 2012 15:13, Petro wrote: > I want to make a plot with two xticks. Lets say at -3051 and 2011 > position. How can I do it? One way to do it: import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3100, 2025, num=50) y = np.random.random(50) plt.plot(x, y) plt.xticks([

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-09 Thread Scott Sinclair
On 8 September 2011 19:20, Matt Funk wrote: > Hi, > sorry that it has taken me so long to reply. Anyway, i could be wrong, but i > don't think that the code: >     xi = np.linspace(llcrnlon,urcrnlon,1000) >     yi = np.linspace(llcrnlat,urcrnlat,1000) > > will produce a grid which gives the lat/lo

Re: [Matplotlib-users] bbox of map

2011-07-03 Thread Scott Sinclair
On 1 July 2011 16:52, marz_cyclone wrote: > i'm trying to get the bounding box of a map plotted with basemap to place a > colorbar. in this reduced example from the example directory of basemap, the > colorbar is set to the hight of the axes of the plot. > ... > > what i'm interested in is the bou

Re: [Matplotlib-users] [SciPy-User] [matplotlib] xgrid on values of x-variable?

2011-06-07 Thread Scott Sinclair
On 7 June 2011 11:32, Klonuo Umom wrote: > I have very simple XY graph, and I want to display X grid only, and only > on values of X variable, which are lets say [10, 11, 12, 15, 20] This is a question for the Matplotlib list (https://lists.sourceforge.net/lists/listinfo/matplotlib-users). In an

[Matplotlib-users] Fwd: result in the graph

2011-05-17 Thread Scott Sinclair
-- Forwarded message -- From: Scott Sinclair Date: 17 May 2011 14:52 Subject: Re: [Matplotlib-users] result in the graph To: Waleria On 17 May 2011 14:35, Waleria wrote: > Hello all, > > I have this code: http://dpaste.com/543369/ (part that generates the chart) >

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread Scott Sinclair
On 11 November 2010 14:59, andres luhamaa wrote: > Thanks, it really works with QT4Agg! > Still, I think it would be better, if it worked with default GTKAgg as > well. But my understanging of the whole matplotlib code is probably too > general to submit a bug report somewhere. A good start is al

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread Scott Sinclair
On 11 November 2010 12:33, Andres Luhamaa wrote: > I have a problem creating map in "aeqd" projection. The problem seems to be > that the map center, given by arguments lon_0 and lat_0 is taking into > account only full part of the coordinate. If I want to get map center at > coordinates lon_0=25.

Re: [Matplotlib-users] colormap plot

2010-11-05 Thread Scott Sinclair
On 5 November 2010 14:05, Scott Sinclair wrote: > You probably want imshow, pcolor, pcolormash or matshow I meant pcolormesh... -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G.

Re: [Matplotlib-users] colormap plot

2010-11-05 Thread Scott Sinclair
On 5 November 2010 13:33, Daniele Nicolodi wrote: > I would like to plot an x, y, z table so that each region of the plot > area defined by the coordinates (x, y) corresponds a color given by the > value of z. I suppose this is a kind of basic functionality, but I'm > unable to find the right func

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-12 Thread Scott Sinclair
On 12 October 2010 14:57, Stefan Mauerberger wrote: > I am having trouble with colormaps unsing pcolormesh. I would like to > plot and colorise a seismic wave field above a map. Plotting works fine > but I do not know how to bring transparency into colormaps. For negative > values I want the color

Re: [Matplotlib-users] How to add extra ticks to colorbar

2010-09-16 Thread Scott Sinclair
On 16 September 2010 22:52, Jeremy Conlin wrote: > I have a colorbar which has some ticks, but I would like to add my own > ticks without replacing any of the existing ones.  In addition, I > would like to give the ticks a different labels like "min" and "max". > Can someone show how this might be

Re: [Matplotlib-users] Right-to-left longitude with Basemap

2010-09-16 Thread Scott Sinclair
On 16 September 2010 20:38, Mario Juric wrote: >        I'm looking at Basemap as a backend for plotting maps of the sky in > different projections, and so far it seems like a really good match! > Excellent work! > >        The only problem that I don't know how to solve is that in astronomy > the

[Matplotlib-users] Fwd: plotting irregular spaced data

2010-07-08 Thread Scott Sinclair
Caught by the default Reply-to... -- Forwarded message -- From: Scott Sinclair Date: 8 July 2010 13:46 Subject: Re: [Matplotlib-users] plotting irregular spaced data To: Ross Williamson >On 8 July 2010 00:15, Ross Williamson wrote: > I have a set of 2d data (2d ar

Re: [Matplotlib-users] remove matplotlib

2010-07-07 Thread Scott Sinclair
>On 7 July 2010 19:02, Eric Firing wrote: > On 07/07/2010 05:01 AM, Benjamin Root wrote: >> Samuel, >> >> Fortunately, matplotlib keeps all of the files that it compiles with the >> python files that it installs. On Ubuntu, I believe that the >> installation directory was /usr/lib/python2.?/dist-

Re: [Matplotlib-users] Placing images on figures

2010-06-09 Thread Scott Sinclair
>On 10 June 2010 07:21, Eamon Caddigan wrote: > I'd like to draw thumbnails of images on various plots, e.g., a bar > chart with a picture placed at the base of the bar, or a scatter plot > with photos next to select points. > > Reading and resizing the image aren't an issue. However, I've been >

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Scott Sinclair
>On 1 April 2010 13:53, Mauro Cavalcanti wrote: > Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) > [GCC 4.3.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. from pylab import randn, hist x = randn(1) hist(x, 100) > > Instead of a nice

Re: [Matplotlib-users] Draw data not in rectangular shape

2010-02-01 Thread Scott Sinclair
>On 1 February 2010 11:34, Torsten Andre wrote: > I've got a a pylab 2D array which I plot using imshow() which just works > fine. But part of the data within the array is not to be considered nor > plotted. > > My problem is that I don't know how to plot the data again. Hi Torsten, Use NumPy ma

Re: [Matplotlib-users] modifying colorbar ticklabels

2010-01-20 Thread Scott Sinclair
>2010/1/20 Mario Mech : > Ok, something like > > cl = cb.ax.get_yticklabels() > cl[0].set_text('bla') > cb.ax.set_yticklabels([elem.get_text() for elem in cl]) This works for me. > But > > cl = cb.ax.get_yticklabels() > > results in a list of Text objects like Text(0,0,''). I have no idea what's

Re: [Matplotlib-users] modifying colorbar ticklabels

2010-01-20 Thread Scott Sinclair
>2010/1/20 Mario Mech : > cb = pyplot.colorbar(format=r"%2.1f") > for j in cb.ax.get_yticklabels(): >   j.set_text('bla') > pyplot.show() > > Doesn't do anything. It looks like cb.ax.get_yticklabels() returns a list of copies of the Text objects. Since you are only changing the copies it has no ef

Re: [Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Scott Sinclair
>2009/12/8 Robert Kern : > Scott Sinclair wrote: >>> 2009/12/7 Wayne Watson : >>> I see a variance with replying to a post on this list and other Python >> >> The moral? Always use "Reply To", and hope everyone else remembers to >> do so as we

Re: [Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Scott Sinclair
> 2009/12/7 Wayne Watson : > I see a variance with replying to a post on this list and other Python > lists. It appears to be a difference between the way people post. If I > see From: a...@xyz.net and To: matplotlib-users@lists.sourceforge.net, > then Reply All gets both. If I see, From: joe...@xy

[Matplotlib-users] Fwd: A Simple Example of histogram Using Range?

2009-11-29 Thread Scott Sinclair
-- Forwarded message -- From: Scott Sinclair Date: 2009/11/30 Subject: Re: [Matplotlib-users] A Simple Example of histogram Using Range? To: Wayne Watson >2009/11/29 Wayne Watson : > So far matplotlib pretty much leaves the user on his own. Yes, there are > plenty of

Re: [Matplotlib-users] Plot a matrix in one command?

2009-10-27 Thread Scott Sinclair
>2009/10/27 Piter_ : > I have a matrix M: > First column is X ans the rest are Ys. Lets say  100 of them (1000 > sometimes). > So far I can plot it like > plot(M(:,1), M(:,2),M(:,1),M(:,3)... and so on and so on) > Is there any possibility to do it in matlab way? Like: > > plot(M(:,1),M(:,2:end))

Re: [Matplotlib-users] unfilled scatter points

2009-10-05 Thread Scott Sinclair
> 2009/10/5 Ernest Adrogué : > is it possible to draw unfilled scatter points? Yes, try the following >>> import numpy as np >>> import matplotlib.pyplot as plt >>> x = np.random.rand(10) >>> y = np.random.rand(10) >>> plt.scatter(x, y, facecolor='none') >>> plt.show() Also take a look at http:/

Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-04 Thread Scott Sinclair
>2009/10/1 ringobelingo : > I would like to add coastlines to a map but do not want interior > 'coastlines'. At present, without them my continents are not distinct enough > from the data I am plotting in the background. But, when I draw them using > drawcoastlines(), I also get e.g. the great lake

[Matplotlib-users] Boxplot date formatting

2009-09-03 Thread Scott Sinclair
> 2009/9/3 Dave Draper : > Scott, > > Have you done any plots using boxplot? > > I am having an issue with the xaxis and trying to change the Date Formatter… > > Thanks, > > David Hi David, Please post questions to the mailing list, if you can clarify what issues you are having (with a stand alon

[Matplotlib-users] Fwd: best format for MS word?

2009-09-01 Thread Scott Sinclair
Forgot to copy the list. -- Forwarded message -- From: Scott Sinclair Date: 2009/9/2 Subject: Re: [Matplotlib-users] best format for MS word? To: Shixin Zeng > 2009/9/2 Shixin Zeng : > Yes, the DPI i'm using is 300, and I tried to change it to 600, or > 1200, b

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-21 Thread Scott Sinclair
. Is there a solution for this problem > besides entering the tick labels manually? > Scott Sinclair wrote: >>> >>> 2009/8/20 Daniel Platz : >>> The setting of the new ticklabels works now. But the first label is >>> attached to the second tick. I tried to ada

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Scott Sinclair
> 2009/8/20 Daniel Platz : > The setting of the new ticklabels works now. But the first label is > attached to the second tick. I tried to adapt the clim range by using > the vmin and vmax option of pcolor but it did not help. Does this help? http://matplotlib.sourceforge.net/examples/pylab_examp

Re: [Matplotlib-users] heatmap with varying size boxes?

2009-08-18 Thread Scott Sinclair
> 2009/8/18 Pete Shepard : > I have a list of X,Y coordinates and a ratio associated with each > coordinate. The X and Y coordinates are continuous but random from 50-500, I > would like to make a continuous heatmap of the ratios at each coordinate. > One caveat is that the coordinates are clustere

[Matplotlib-users] ImportError with basemap-0.99.3 windows binary installer

2009-02-04 Thread Scott Sinclair
Hi Jeff, I'm seeing the following error with basemap-0.99.3 on Windows. It was installed using the binary installer from sourceforge (as were Numpy and Matplotlib). Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "lice

Re: [Matplotlib-users] Color Map.

2009-01-15 Thread Scott Sinclair
> 2009/1/15 : >>Matplotlib is a purely 2D plotting library, it doesn't provide similar >>capability to the Matlab 'mesh' function. For 3D plotting you could >>use Mayavi > > > Do you have some example of Python programs using Mayavi ? Simple > examples would be good ones. Please make sure to dire

Re: [Matplotlib-users] Color Map.

2009-01-15 Thread Scott Sinclair
> 2009/1/15 Oscar ¿? > I´m a new user of this forum. I'm trying to work in Python at the moment but > it´s quite difficult for me. My first question is if it is > possible to do Color Maps in Matplotlib in the same manner of the "mesh" > function in Matlab. Could you help me anybody? Hi Oscar,

Re: [Matplotlib-users] Basic matplotlib configuration question

2009-01-06 Thread Scott Sinclair
> 2009/1/7 David Lees : > I just installed the windows prebuilt packages for Python 2.5 for: > numpy, scipy and finally matplotlib. I get the following import problem: > > >>> import pylab > Traceback (most recent call last): > File "", line 1, in > File "C:\Python25\Lib\site-packages\pylab.py

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Scott Sinclair
>2008/12/23 Eric Firing : > antonv wrote: >> Hi all, >> >> I am trying to plot data from a grib file from noaa ... >> Here is a sample of the code that I am using: >> >> import matplotlib.pyplot as plt >> import matplotlib.mlab as mlab >> >> r = >> mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_f

[Matplotlib-users] Website buglet

2008-12-10 Thread Scott Sinclair
Hi, I noticed that there is a problem rendering the plot here: http://matplotlib.sourceforge.net/users/screenshots.html#basemap-demo It might be something to do with the location of the data required by the plotmap.py demo script (line 14). Cheers, Scott ---

Re: [Matplotlib-users] Plotting grid data

2008-12-09 Thread Scott Sinclair
> Mauro Cavalcanti wrote: > I tried to do: > > coords = numpy.loadtxt('grid.dat') > lon = coords[:,0] > lat = coords[:,1] > dat = coords[:,2] > X, Y = numpy.meshgrid(lon, lat) > nlons = X.shape[1] > nlats = X.shape[0] > Z = dat.reshape(nlats,nlons) > > (so that I could proceed to plotting with the

Re: [Matplotlib-users] colorbar tick labeling

2008-11-20 Thread Scott Sinclair
2008/11/21 Eric Firing <[EMAIL PROTECTED]>: > Michael Outhouse wrote: >> I was wondering if it is possible to change the colorbar tick labeling in >> matplotlib from numeric to text. Essentially, I want the colorbar to be a >> qualitative indicator; in the jet scheme, I'd like blue to be labeled >>

[Matplotlib-users] Custom colorbar tick labeling

2008-10-31 Thread Scott Sinclair
Hi, There was a recent unanswered post on this topic. I hope the attached script is useful and makes it's way into the Matplotlib examples. Thanks for a great library, Scott Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/ colorbar_tick_labelling_demo.py Description: Bi

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-17 Thread Scott Sinclair
> "John Hunter" <[EMAIL PROTECTED]> 10/16/08 6:39 PM > We've been working behind the scenes on a new documentation system for > matplotlib, which integrates the web site, API documentation and PDF > As an example we can include plots in our API documentation, see > > http://matplotlib.sourceforg

Re: [Matplotlib-users] Wind Barb plots

2008-07-24 Thread Scott Sinclair
Nice! >>> Ryan May <[EMAIL PROTECTED]> 07/24/08 4:55 AM >>> To anyone interested (especially the meteorologists out there), Matplotlib SVN trunk now has support for doing wind barb plots. Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/ ---

Re: [Matplotlib-users] Basemap to KML polygon

2008-07-23 Thread Scott Sinclair
>>> Lionel Roubeyrie <[EMAIL PROTECTED]> 07/23/08 9:37 AM >>> I want to "convert" a filled contours map generated with Basemap (example here : http://imagebin.ca/view/3nYnN3.html) to a polygon shapefile (vector). After multiple tests, I can retrieve the polygons points coordinates via matplotli

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread Scott Sinclair
>>> David Goldsmith <[EMAIL PROTECTED]> 06/19/08 9:39 AM >>> Hi! I'm having trouble figuring out how to plot an array as an image with the OO interface - please help (e.g., w/ an example). Thanks, DG >>> >From the examples >http://matplotlib.sourceforge.net/matplotlib_examples_0.98.0.zip ../

Re: [Matplotlib-users] matplotlib/basemap question

2008-06-11 Thread Scott Sinclair
Here's a response to a similar question a few weeks back: http://www.nabble.com/Kriging-with-Matplotlib-to17281645.html I haven't tried using the RandomRealizations package yet, but it looks good and well documented. Regards, Scott >>> Lionel Roubeyrie <[EMAIL PROTECTED]> 06/11/08 8:47 AM >>>

Re: [Matplotlib-users] adding a box (domain) on a basemap map

2008-05-08 Thread Scott Sinclair
Hi Nicolas, The attached script should illustrate one way to solve your problem. Cheers, Scott >>> Nicolas <[EMAIL PROTECTED]> 05/07/08 2:25 PM >>> Hi all sorry for posting this question that might have been answered before, but I'm in the urgent need of finding a way to overlay a rectangular b

Re: [Matplotlib-users] setting up matplotbib

2008-04-16 Thread Scott Sinclair
Hi Nathanael, Are you sure that you've actually installed the Matplotlib package for Python? You don't mention it in your e-mail. What happens when you type: import matplotlib at the Python prompt (i.e. in Ipython)? You can download a windows installer from http://matplotlib.sourceforge.net/

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Scott Sinclair
That is very cool, I hadn't thought of it! So what you're saying is that any transformation (a complex distortion) of a regular rectangular grid is fine. The fact that the grid's 'pixels' are four sided quadrilaterals satisfies this condition and the contour algorithm works... Cheers, Scott

Re: [Matplotlib-users] Histogram orientation

2007-04-30 Thread Scott Sinclair
h(self, bottom, width, height=0.8, left=None, **kwargs): but I haven't looked back at the svn records to check that. Eric Scott Sinclair wrote: > Hi, > > The following code fails for me with matplotlib-0.90.0 -- > > -

[Matplotlib-users] Histogram orientation

2007-04-30 Thread Scott Sinclair
Hi, The following code fails for me with matplotlib-0.90.0 -- --- import pylab as pl x = pl.randn(1000) pl.hist(x, orientation='horizontal') pl.show() --- This is because Axes.barh() [called

Re: [Matplotlib-users] new release of basemap

2007-03-16 Thread Scott Sinclair
>>> Jeff Whitaker <[EMAIL PROTECTED]> 3/16/2007 18:30 >>> I just put a new release (0.9.5) of basemap on the sf download site. ... Windows users - please let me know if the binary installers work OK. >>> Hi Jeff, Thanks for the great toolkit. I've just downloaded, installed and tested "basem