[Matplotlib-users] A imshow map without fill color

2014-09-18 Thread GoogleWind
Dear all, I would like to create imshow map using ax.imshow(arr). However, I
got the image as Fig. 1. Is there any setting to get the image as Fig. 2
(i.e., without fill color for the cell).

 
Fig. 1

 
Fig. 2


Thanks in advance for your answer.
Jiacong Huang



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/A-imshow-map-without-fill-color-tp43975.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Visulization of orthogonal grid

2015-05-05 Thread GoogleWind
Dear all,

Matplotlib currently support the visuliaztion of triangular mesh and
square-cell map. Is there any solutions to support the visulization of
orthogonal grid as follows,
 

Thanks in advances for your hints.

Best regards,
Jiacong Huang
---
Nanjing Institute of Geography & Limnology
Chinese Academy of Sciences
73 East Beijing Road, Nanjing 210008, China
Tel./Fax: +86-25-86882127
Homepage: http://www.escience.cn/people/elake/index.html




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Visulization-of-orthogonal-grid-tp45473.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Visulization of orthogonal grid

2015-05-06 Thread GoogleWind
Dear Eric,

Thanks for your nice answer. Exactly what I need.

Best regards,
Jiacong Huang



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Visulization-of-orthogonal-grid-tp45473p45476.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] How to get the value of a cell in pcolormesh

2015-05-11 Thread GoogleWind
Hi everyone!
It is cool to use the pcolormesh in matplotlib. However, is there a way to
get the i, j indexes of the clicked cell?  I have try event.mouseevent.xdata
and event.mouseevent.x. But they did not return the index I need.

Thanks in advanced for your help.

Dr. Jiacong Huang
Nanjing Institute of Geography & Limnology
Chinese Academy of Sciences
73 East Beijing Road, Nanjing 210008, China
Tel./Fax: +86-25-86882127
Homepage: http://www.escience.cn/people/elake/index.html



---Code to generate pcolormesh---
import numpy as np
from matplotlib.pyplot import figure, show
from numpy import ma

n = 12
x = np.linspace(-1.5,1.5,n)
y = np.linspace(-1.5,1.5,n*2)
X,Y = np.meshgrid(x,y);
Qx = np.cos(Y) - np.cos(X)
Qz = np.sin(Y) + np.sin(X)
Qx = (Qx + 1.1)
Z = np.sqrt(X**2 + Y**2)/5;
Z = (Z - Z.min()) / (Z.max() - Z.min())

# The color array can include masked values:
Zm = ma.masked_where(np.fabs(Z) > 100, Z)

fig = figure()
ax = fig.add_subplot(111)
col = ax.pcolormesh(Qx[:5,:4],Qz[:5,:4],Zm[:4,:3])
show()
-



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/How-to-get-the-value-of-a-cell-in-pcolormesh-tp45499.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to get the value of a cell in pcolormesh

2015-05-24 Thread GoogleWind
Hi Tom,

It is nice to receive your hints. I would like to try it.

Best regards,
Jiacong Huang



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/How-to-get-the-value-of-a-cell-in-pcolormesh-tp45499p45610.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] the problem about axe

2009-05-14 Thread GoogleWind

hello everyone,

I have use maplotlib to show an image. the image is a map. 
The problem is when I zoom in the map, The extent of self.ax changes to fix
my selected. However, I want the extent of self.ax stand unchanged. Only the
map's extent changed. Is there any suggestion?

self.fig = Figure((8.8,6),facecolor='w')
self.canvas= FigureCanvasWxAgg(frame, -1, self.fig)   
self.ax= self.fig.add_axes([0.17,0.15,0.7,0.7],axisbg='#ff')
self.im = self.ax.imshow(Zm, norm = colors.Normalize(vmin =
valueSet[0], vmax = valueSet[1], clip =
False),cmap=palette,interpolation='nearest')

Thank you.
Huang.
-- 
View this message in context: 
http://www.nabble.com/the-problem-about-axe-tp23532518p23532518.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] the problem about axe

2009-05-14 Thread GoogleWind

Yeah, Thank you.
This works. When I set aspect='auto', the im will not changed when I zoom in
or out.  However another problem appears. When I changed the size of the
frame. The length to width ratio is changed. So the map get an unexpected
shape.
Is there other suggestion to avoid this.

Huang.
-- 
View this message in context: 
http://www.nabble.com/the-problem-about-axe-tp23532518p23551697.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users