From: <seb...@sp...> - 2004-11-10 18:06:11
|
The examples on the screenshots page are great and very helpful. I hope to never use any other plotting app again except Matplotlib. What is easiest/cleanest way to modify examples to accept precalculated /data/ rather than use a mathematical /function/??? e.g. x = arange(xmin, xmax, dx) y = arange(ymin, ymax, dy) X,Y = meshgrid(x, y) Z = my_function(X, Y) im = imshow(Z, extent=(xmin, xmax, ymin, ymax)) How supply "Z" data myself rather than define my_function for Z? ==================== Also, plot(t, my_function(t)) Same question here for this 2D plot. (I have the 2D data already calculated.) thanks! Chris -- _______________________________________ Christian Seberino, Ph.D. SPAWAR Systems Center San Diego Code 2872 49258 Mills Street, Room 158 San Diego, CA 92152-5385 U.S.A. Phone: (619) 553-9973 Fax : (619) 553-6521 Email: seb...@sp... _______________________________________ |