Re: [Matplotlib-users] How do I make a Mercator map larger

2016-01-04 Thread Arnaldo Russo
Hi Martin,

Have you tried to save your figure and check if it does not enlarge your
figure?

plt.savefig("mercator.png")

Cheers,
Arnaldo.

---
Arnaldo D'Amaral Pereira Granja Russo
Universidade do Estado de Santa Catarina - UDESC
Pesquisador - Instituto Ambiental Boto Flipper
institutobotoflipper .org

2016-01-03 20:20 GMT-02:00 Martin McGlensey :

> Hello,
>
>
>
> I’m a new user to both python and basemap. I’ve got my map working OK, but
> would like to make it larger on the display. I’ve tried the height and
> width parameters in the map definition (m=basemap(…) and
> plt.figure(figuresize=(x,y)). Neither appear to have any effect on the size
> of the map.
>
>
>
> Is there an easy way to convert map coordinates to inches?
>
>
>
> Thanks,
>
> Marty
>
>
> --
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Produce KML from Matplolib

2015-06-24 Thread Arnaldo Russo
Hi Egayer,

Filipe Fernandes spoted a nice result using Simplekml and Basemap.

https://ocefpaf.github.io/python4oceanographers/blog/2014/03/10/gearth/

Cheers,
Arnaldo.


2015-06-10 5:07 GMT-03:00 egayer :

> Hi all,
>
> Is there a way to produce a KML file from matplolib results as R and Matlab
> do ?
>
> - plotKML is a R package http://plotkml.r-forge.r-project.org
> - Matlab has the Google Earth Toolbox.
>
> Both of them allow to plot directly on GE
>
> I' have been digging around and found this old post :"Producing a
> KML-friendly (Google Earth) image" but nothing about how to actually a
> matplolib result as a KML file useable into Google Earth.
>
> I have seen some shape to KML packages, but nothing about raster.
>
> The ultimate goal being to use the "plot, mplot3d, imshow, etc..." to plot
> any python array on GE.
>
> Thanks for your help
> Eric
>
>
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/Produce-KML-from-Matplolib-tp45759.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> --
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Multiplot with one colorbar

2015-03-06 Thread Arnaldo Russo
Hi,
.
Your example is not much clear. It's better post some short example and a
running piece of code.
btw, maybe your problem should be solved with this post:
http://stackoverflow.com/questions/13784201/matplotlib-2-subplots-1-colorbar

Cheers,
Arnaldo


---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG



2015-03-06 6:36 GMT-03:00 Dyah rahayu martiningrum :

> Hello all,
>
> I make multi plot with colorbars. I need help, how do make only one
> colorbar for six panels? I also want to show only lowest x-axis. I copy my
> recent code and  figure here.
>
># Open file
> fd = nc.Dataset(fname, 'r')
>
> # Read variables
> beam = fd.variables['beam'][:]
> rng = fd.variables['range'][:]
> tim = fd.variables['time'][:]
> pwr = fd.variables['pwr'][:]
> nfft = fd.variables['nfft'][0]
> pn = fd.variables['pnoise'][:]
> width=fd.variables['width'][:]
> # Close netCDF file
> fd.close()
>
> # Specify beam
> ibeam = ibeams[i]
>
> # Time convertion
> tim = tim/3600.0
>
> #Plot
> p_plot = pwr[ibeam]
> for it in range(len(tim)):
> p_plot[it] = p_plot[it] - pn[ibeam][it] - 10.*np.log10(nfft)
> p_plot = p_plot.transpose()
>
> #Specify subplot
> pl.subplot(611 + i)
> #Contour plot
> v= np.linspace(5., 50., 5., endpoint=True)
> x= pl.contourf(tim, rng, p_plot, v, cmap=pl.cm.jet)
> x = pl.colorbar(ticks=v)
> x.ax.set_title('dB')
> print x
>
>
> # Set X and Y axis lower/uppser limit
> set_xy = range(4)
> set_xy[0] = 18.0 # x min
> set_xy[1] = 30.0 # x max
> set_xy[2] = 200.0 # y min
> set_xy[3] = 550.0 # y max
> pl.axis(set_xy)
>
> # Set labels
> pl.xlabel('time (hours)')
> pl.ylabel('range (km)')
> pl.show()
>
>
> Thank you
>
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Include \hline on table inside figure

2015-01-23 Thread Arnaldo Russo
Hi Tom,

Thanks for the tip, I'll take a look.
Concerning the TeX behavior, do you know what is going on?

Cheers,
Arnaldo.
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Include \hline on table inside figure

2015-01-23 Thread Arnaldo Russo
Hi,

I'm dealing with this issue but no clues I have found!
When I use simple matplotlib engine, my plot does not render the correct
font (which I have set to Arial) but it renders the \hline and specif
spaces in the table inserted inside the figure area [Fig 1]
.

In the second try, using Xelatex engine (made possible by mpl.use('pgf') ),
I get correct Arial font but my table inside becomes a mess [Fig 2]
.

Does anyone knows what is the difference between the two codes [Code]
, and how should
I get a figure with Arial font and a table inside the figure area?

It's strange when I have to deal with latex codes and matplotlib... In a
simple plot (whitout LaTeX elements) I'd have set simply: font.family:
["sans-serif"] and font.sans-serif: ["Arial"].

Is there a way to include tables inside a figure with another approach
(e.g. whithout using LaTeX)?

At least but not less important: The figures in their different part of the
[Code] , must be
executed in different session. If I run everything in a simple console, I
really dont know which parameter is maintained, but Arial is not used (in
the second plot).


[Fig 1] http://imgur.com/J1A01h5
[Fig 2] http://imgur.com/4TckUyb
[Code] https://gist.github.com/arnaldorusso/e542b04245560300d4f7

Thank you all!

Cheers,
Arnaldo.
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to use full path of font inside matplotlibrc - Arial not loading

2015-01-20 Thread Arnaldo Russo
Thanks Benjamin!!

In fact, this folder was inside .cache/matplotlib
I have removed the entire content, and know matplotlib seems to recognize
Arial font.

Cheers,
Arnaldo
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] How to use full path of font inside matplotlibrc - Arial not loading

2015-01-20 Thread Arnaldo Russo
I have Arial font installed in my system:

/usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
/usr/share/fonts/truetype/msttcorefonts/arialbi.ttf
/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf
/usr/share/fonts/truetype/msttcorefonts/arial.ttf
/usr/share/fonts/truetype/msttcorefonts/ariali.ttf
/usr/share/fonts/truetype/msttcorefonts/arialbd.ttf
/usr/share/fonts/truetype/msttcorefonts/Arial.ttf
/usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf
/usr/share/fonts/truetype/msttcorefonts/Arial_Black.ttf
/usr/share/xbmc/media/Fonts/arial.ttf
/usr/local/share/texmf/fonts/tfm/urw/arial
/usr/local/share/texmf/fonts/afm/urw/arial
/usr/local/share/texmf/fonts/vf/urw/arial
/usr/local/share/texmf/fonts/type1/urw/arial

I have changed inside my matplotlibrc including the line:

font.sans-serif  : Arial

If I check inside IPython:

import matplotlib.pyplot as plt
plt.plot([1,2,3,4,5,], '*')
t = plt.ylabel(r'1, 2, 3, 8, 9 6 11 Testing Label')
print(t.get_fontname())

The output is:

myhome/local/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-
x86_64.egg/matplotlib/font_manager.py:1279: UserWarning: findfont: Font
family [u'sans-serif'] not found. Falling back to Bitstream Vera Sans
(prop.get_family(), self.defaultFamily[fontext]))

Bitstream Vera Sans

How can I change this behavior and use Arial fonts for all of my plots?
Why Arial font is not loaded?

It is interesting, that if I use Seaborn, it returns `Liberation Sans`
where the first font (inside internal font list) is Arial and the second is
`Liberation Sans`.

I have also tried to set the full path of my Arial font:

import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.font_manager as font_manager
import seaborn as sns

path = '/usr/share/fonts/truetype/msttcorefonts/Arial.ttf'
prop = font_manager.FontProperties(fname=path)
mpl.rcParams['font.family'] = prop.get_name()


sns.set_style("whitegrid")
plt.plot([1,2,3,4,5,], '*')
t = plt.ylabel(r'1, 2, 3, 8, 9 6 11 Testing Label')
print(t.get_fontname())

It returns `Liberation Sans`. Any clues? (aka http://goo.gl/V511ux) =]


Cheers,
Arnaldo.
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] (no subject)

2014-09-10 Thread Arnaldo Russo
Hi,

Thanks a lot for the clue, Pierre.
Unicode fix this thread, at least for my case.

Cheers,
Arnaldo.


---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG



2014-09-08 7:06 GMT-03:00 Pierre Haesssig :

>
> Le 05/09/2014 21:53, Arnaldo Russo a écrit :
>
>> The following code plots my table, but greek letters are not in Arial.
>>
> What about adding greek letters directly with a Unicode string and keeping
> LaTex only for the table?
>
> best,
> Pierre
>
> (my greek and math unicode "copy-pasting files" attached)
>
>
> --
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] (no subject)

2014-09-06 Thread Arnaldo Russo
Hi Tobi and others,

I have tested include other packages (e.g \usepackage{cmbright} ), but it
seems to not solve my problem.
Including on matplotlibrc, exactly the lines as you said, my output is the
same as I have attached (Matplotlib To.png).
On pure LaTex, I really don't know how it should be charged. I have tried
this:

\documentclass{report}
\usepackage{fontspec}\setmainfont{Arial}\setmathrm{Arial}\setmathsf{Arial}\setmathtt{Arial}\usepackage{amsmath}
\begin{document}
$\mu$text $\eta$text $\cdot$ m$^{-2}$ s$^{-1}$
\end{document}


Thanks


---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG




2014-09-06 6:19 GMT-03:00 Tobias Winchen :

> Hi,
>
> On Friday 05 September 2014 16:53:47 Arnaldo Russo wrote:
> > I'm trying to figure out how I could use greek letters on axis labels,
> > without italic.
> > I have read a lot about alternatives, but I do need to use LaTeX to
> insert
> > a table inside the plot area.
>
> I use the sfmath package together with the sans-serif latex fonts in
> matplotlib. The relevant lines in my matplotlibrc are:
>
> font.family: sans-serif
> font.serif : Computer Modern Roman, Times, Palatino,
> font.sans-serif: Computer Modern Sans serif, Helvetica, Avant Garde,
> font.cursive   : Zapf Chancery
> font.monospace : Courier, Computer Modern Typewriter
>
> text.latex.unicode : True
> text.latex.preamble : \usepackage{lmodern},\usepackage{sfmath},
> \usepackage{amsmath}, \usepackage{amssymb}, \usepackage{siunitx},
>
> This should do what you want?
>
> Best regards,
>
>
> Tobi
>
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] (no subject)

2014-09-05 Thread Arnaldo Russo
Hi,

I'm trying to figure out how I could use greek letters on axis labels,
without italic.
I have read a lot about alternatives, but I do need to use LaTeX to insert
a table inside the plot area.

Using mathtex it responds with normal font on greek letters.

What I`m doing wrong?

The following code plots my table, but greek letters are not in Arial.

import numpy as npimport matplotlib.pyplot as plt

t2 = np.arange(100)
fig  = plt.figure(figsize=(8,4))
ax = fig.add_subplot(111)

plt.rcParams.update({'font.family' : 'sans-serif',
'font.sans-serif' : 'Arial',
'font.style' : 'normal',
'xtick.labelsize' : 12,
'ytick.labelsize' : 12,
'mathtext.fontset' : 'stixsans',
'mathtext.default': 'regular',
'mathtext.tt' : 'Arial',
 })
plt.subplots_adjust(left=0.12, right=0.95, top=0.95, bottom=0.1)


ax.set_xlim(0,100)
xvals = [0, 16.6, 33.33, 50, 66.66, 83.33, 100]
ax.set_xticks(xvals)
ax.set_xticklabels(['tick 0', 'tick 1', 'tick 2','tick 3', 'tick 4',
'tick 5', 'tick 6'])
ax.set_ylabel(r'$\mu$text $\eta$text $\cdot$ m$^{-2}$ s$^{-1}$')
ax.set_yticklabels(['0', '200', '400', '600', '800', '1000', '1200', '1400'])
ax.plot(t2, color='black')
ax.fill_between(np.arange(0, len(t2)),t2,0, color='black', alpha=0.8)

from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Arial']})
rc('text', usetex=True)
table = r'''\begin{tabular}{lccc}\hline&tick 0& tick 1 & tick 2 &
tick 3 & tick 4 & tick 5 & tick 6 \\\hline Vals & 32.00 & 3.28 & 5.80
& 5 & 8 & 45 & 7.3 \\\hline \end{tabular}'''
plt.text(20,80,table,size=10)

plt.show()


And an example using Mathtex, using regular fonts work out of the box, but
my table of course is included as plain text. I have to close my IPython
session and start it again to correct usage of plot parameters.

import numpy as npimport matplotlib.pyplot as plt

t2 = np.arange(100)
fig  = plt.figure(figsize=(8,4))
ax = fig.add_subplot(111)

plt.rcParams.update({'xtick.labelsize' : 12,
'ytick.labelsize' : 12,
'mathtext.fontset' : 'stixsans',
'mathtext.default': 'regular',
'mathtext.tt' : 'Arial',
})
plt.subplots_adjust(left=0.12, right=0.95, top=0.95, bottom=0.1)


ax.set_xlim(0,100)
xvals = [0, 16.6, 33.33, 50, 66.66, 83.33, 100]
ax.set_xticks(xvals)
ax.set_xticklabels(['tick 0', 'tick 1', 'tick 2','tick 3', 'tick 4',
'tick 5', 'tick 6'])
ax.set_ylabel(r'$\mu$text $\eta$text $\cdot$ m$^{-2}$ s$^{-1}$')
ax.set_yticklabels(['0', '200', '400', '600', '800', '1000', '1200', '1400'])
ax.plot(t2, color='black')
ax.fill_between(np.arange(0, len(t2)),t2,0, color='black', alpha=0.8)
#from matplotlib import
rc#rc('font',**{'family':'sans-serif','sans-serif':['Arial']})#rc('text',
usetex=True)
table = r'''\begin{tabular}{lccc}\hline&tick 0& tick 1 & tick 2 &
tick 3 & tick 4 & tick 5 & tick 6 \\\hline Vals & 32.00 & 3.28 & 5.80
& 5 & 8 & 45 & 7.3 \\\hline \end{tabular}'''
plt.text(20,80,table,size=10)

plt.show()


Regards,
Arnaldo.

---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] violin plot

2014-08-27 Thread Arnaldo Russo
Hi Neal,
I don't know if you need exclusively matplotlib tools to apply your violin
plot, but seaborn package [1, 2] do this very well.
I hope you enjoy it!
Cheers,
Arnaldo.

[1]
http://web.stanford.edu/~mwaskom/software/seaborn/examples/violinplots.html
[2] https://github.com/mwaskom/seaborn


---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG




2014-08-27 12:15 GMT-03:00 Neal Becker :

> I'm pleased to see violinplot added to mpl-1.4.  One question.  I might
> like to
> annotate with some statistic.  Like boxplot can show quantiles.  I might
> like to
> show either quantiles, or some other statistic (3 sigma) on my violinplot.
> After all, violinplot is advertised as an improved boxplot, but it seems
> to be
> missing this feature.
>
> --
> -- Those who don't understand recursion are doomed to repeat it
>
>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to put the label above horizontal colorbar?

2014-03-15 Thread Arnaldo Russo
Dear Chao,

You could try this,

import matplotlib
import matplotlib.pyplot as plt

# create a color bar with:
sm = plt.cm.ScalarMappable(cmap=plt.get_cmap('Reds'))
sm.set_array(range(10))

# create an horizontal colorbar and put the ticks on the top.
# in your case, you could plot colorbar on top, and tick at 'bottom'
cb = plt.colorbar(sm, orientation='horizontal', location=1.0)
cb.ax.xaxis.set_ticks_position('top')
plt.show()

Another way, you could find useful a function written by Ryan May [0]

Hope that fits.

Arnaldo.

[0]
https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg07447.html


---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG




2014-03-10 14:39 GMT-03:00 Chao YUE :

> Dear all,
>
> I am using the matplotlib 1.2.0 version, is there some way to put the
> label above the horizontal colorbar? like in the attached example, I would
> like the labels to be shown above the colorbar?
>
> thanks a lot in advance,
>
> Cheers,
>
> Chao
>
> --
>
> ***
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
>
> 
>
>
> --
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Newbie-question: spines with arrows

2012-06-17 Thread Arnaldo Russo
Hi Mark,

I really didn't tested anything about yours sketch... But I think
"AxisArtist" could be of any help.
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisartist

Good luck.

Cheers,
Arnaldo.
---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG





2012/6/15 Asbach, Mark 

>  Hi there,
>
> I'm sorry to ask such a newbie question, but I'd like to format a custom
> box plot and although there are numerous examples on the web and tons of
> docstrings in matplotlib, I'm stuck somehow. My problems center around axes
> / spines. In detail, my problems are:
>
> 1) I want an y-axis on the left that spans from -0.6 to 1.1, ends in an
> arrow, has major ticks at 0 and 1 and minor ticks at [0.1...0.9]
> As far as I understand, there is no option to let spines end in an arrow
> head, so I have to draw the myself. I get the ticks to appear at the right
> positions and the y-range to be as desired - however, the spine line is not
> drawn over the full y-range, but only where there is data in the diagram.
> Also, I copied the arrow annotation code blindly from an older post on this
> list, but do not understand how I can adapt the arrow head to appear at a
> data position (instead of at the corner of the Axes area). One problem is,
> that I get ticks on the right although that spine was disabled.
>
> 2) I want some kind of x-axis at y==0, without ticks and without arrow
> Using some methods on the spines, I can disable the top spine and move the
> bottom spine to zero. However, as with the y-axis, I cannot control from
> where to where the line itself is drawn.
>
> As attachments, you'll find a hand sketch of what my graph should look
> like and matplotlib code that goes nearly all the way.
>
> I would be very happy about a hint on how to fix the problems left.
>
> Thanks an advance,
> Mark
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
<>--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] netcdf4-python

2012-05-04 Thread Arnaldo Russo
Hi John,

Have you tried pupynere module?
http://pypi.python.org/pypi/pupynere/
https://bitbucket.org/robertodealmeida/pupynere/

[ ]
---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG





2012/5/4 John 

> Hello,
>
> I'm working with the latest netcdf4-python (svn updated recently). It
> has been built with the Netcdf 4.1.1 and HDF 4.2.5 and HDF5 1.8.5
> patch libraries. The installation is on Ubuntu 64bit 10.04 LTS.
>
> I get some very strange behavior when trying to read a file, which
> actually causes Ipython to close:
> In [3]: from netCDF4 import DataSet as NetCDFFile
> In [4]: nci = NetCDFFile('100730_tawo_TAWO-var.nc')
> python: v1hpg.c:190: v1h_get_nc_type: Assertion `type == NC_BYTE ||
> type == NC_CHAR || type == NC_SHORT || type == NC_INT || type ==
> NC_FLOAT || type == NC_DOUBLE' failed.
> Aborted
> $
>
> Does anyone have a suggestion where to look for the root cause of
> this? From the searches I've done it seems it is likely related to the
> dynamic linking of the libraries at build time.
>
> Thank you,
> john
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to draw maps like in m_map tool?

2012-04-16 Thread Arnaldo Russo
Hi matplotlib users.
Has anyone gave the first steps or finished a patch for this?
I don't have enough knowledge to propose one, but I could try to help in
any improvement or testing.
Thank you,
Arnaldo.

---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG

Jeff Whitaker  writes:

>
>
> On 1/2/11 9:17 PM, Linuxer Wang wrote:
>
>
>   Hi, Jeff
>   Sorry for the confusion. Yes, I mean to draw the black/white
>   border (called fancy box in m_map). Drawing the maps is really
>   easy to use, thanks for your great Api. Is there plan to support
>   the fancy border feature in near future?
>
>
> No, but patches are welcome.
> -Jeff
>   Thank you for replying.
>   On 01/02/2011 06:09 PM, Jeff Whitaker wrote:
>
> On 1/2/11 1:01 PM, Linuxer Wang wrote:
>
>   This may be a question for Jeffrey Whitaker but welcome
>   anyone's help.
>   I used to use the m_map tool for matlab (
http://www.eos.ubc.ca/~rich/map.html).
>
>
>
>
>   Does anybody know how to draw the same maps in matplotlib
>   (BaseMap)? Specifically, how to draw axes in such figures:
http://www.eos.ubc.ca/~rich/private/extblueocean.gif
>   or http://www.eos.ubc.ca/~rich/private/exmiller.gif
>   ?
>   Thanks a lot.
>
> Can you be more specific about what you need help with?  Is it
> drawing the map itself, or drawing the lines on the map?
> examples/nytolondon.py shows how to draw great circles, which is
> similar to the extblueocean.gif example.
> If you are asking how to draw that black and white border around
> the map, that is not supported.  However, it is easy to draw
> labelled meridians and parallels (with the drawparallels and
> drawmeridians class methods).  Docs are at
http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html,
> and there are lots of examples in the 'examples' directory of
> the source distribution.
> HTH,
> -Jeff
>
--
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
> ___
> Matplotlib-users mailing list
> matplotlib-users-5nwgofrqmnerv+lv9mx5uipxlwaov...@public.gmane.org
 > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
>
>
>
>
--
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users