[Matplotlib-users] 3D plotting?
Is there a way to choose the color map for doing scatter plots using Axes3D? In the test_scatter() example in the class, there is a line something like: ax.scatter3D(xs,ys,zs, c='r') I would like to plot points based on 3 dimensional coordinates specified by xs,ys, zs, which works great. However, I would like to color the points with a third array, for example, cs which would either specify an index in a color map, or even just an intensity of a given color. Is this possible within matplotlib? Thanks, William - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] 3D plotting?
2007/8/10, william ratcliff [EMAIL PROTECTED]: so it would be something like: c=numpy.array([[1,2,3],[0,0,4],[0,2,4]]), where the values in the array go from 0-255 and denote r,g,b values? Thanks! I use floatting point values, don't know if integers work. I thing that colormap could be used, but I really don't know, I do not use them. Matthieu - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] sync x axes on top and bottom
Hi, I have created a plot where I have time in minutes at the bottom x-axis. I have another axis with clock-time (hh:mm) at the top x-axis. I use SpanSelector to zoom in the x-axis only. Whenever I zoom in or zoom out on the minute axis I would like to sync the hh:mm axis as well. I used xticks = self.ax[0].xaxis.get_ticklocs() to get the tick locations on the minute axis and then plot the labels at the corresponding tick locations on the hh:mm axis. The behavior during zooms is not what I was expecting. When the plot is first created the tick locations on both axes are correct and they are as follows 0.0 07:51:08 50.0 08:41:08 100.0 09:31:08 150.0 10:21:08 200.0 11:11:08 250.0 12:01:08 300.0 12:51:08 After zoom in the reported tick locations are as follows 30.0 08:21:08 60.0 08:51:08 90.0 09:21:08 120.0 09:51:08 150.0 10:21:08 180.0 10:51:08 210.0 11:21:08 But the bottom minute axis shows 60, 90, 120, 150, 180. Because the span starts at 31.5 minutes and ends at 185 minutes. Therefore, the bottom axis does not draw the 30 and 210 ticks. However, get_ticklocs() gets the 30 and 210 min values and the hh:mm axis is drawn out of sync. So now my question is: is there a method that only returns the tick locations that are actually drawn on the plot? Regards, NG - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] pylib BaseHTTPRequestHandler
Hi Everyone, I am trying to find a way of producing a graph in pylib and then returning it as a graphic via a simple BaseHTTPRequestHandler webserver. I don't appear to be able to find any documentation on this, although I am sure it must be possible to achieve this! I know that I can produce a temporary file in pylib and then load it and output it in BaseHTTPRequestHandler but I am looking to avoid this unnecessary step! Many thanks, Alex - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users