[Matplotlib-users] how to plot data on image.
Dear All, I am facing one peculiar problem. I have ecg data of 2000 points . I can plot it,but i want to plot the data on image . Kindly find the attched image with this mail to get my problem.How should I go ahead. Thanx in advance. Regards Yogesh <>-- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] how to plot data on image.
Dear All, I am facing one peculiar problem. I have ecg data of 2000 points . I can plot it,but i want to plot the data on image . Kindly find the attched image with this mail to get my problem.How should I go ahead. Thanx in advance. Regards Yogesh <>-- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] the problem in pylab_examples example code: image_demo2.py
The 1st code snippet of image_demo2.py is as follows #!/usr/bin/env python from pylab import * w, h = 512, 512 s = file('../data/ct.raw', 'rb').read() A = fromstring(s, uint16).astype(float) A *= 1.0/max(A) A.shape = w, h I replaced s = file('../data/ct.raw', 'rb').read() with s = file('/home/jaguar/Developemnt/image_demo2.png', 'rb').read() The image is same as in given demo example(its given in .png format) and rest of code is also same. when I run it it gives the error as *" * *A = fromstring(s, uint16).astype(float)* *ValueError: string size must be a multiple of element size"* WHat can be the error in program? I may asking stupid question Thanks in advance ! Regards Yogesh -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to draw following gridlines
Kindly find the image attached with this mail. I want to make the graph with grid lines(shown in background) as plotted in attached mail(Dont consider the curve in foreground).How can we do it in matplotlib? I tried grid(color='#f52887', linestyle='-', linewidth=1). But I couldnt figure out how to go ahead. Thanks in advance! Regards Yogesh <>-- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problem with minorticks
Dear All, I want to make minor ticks working in following program. Here only major ticks are dis[played in grpah though i have declared the minor ticks minorticks_on() doesnt work in my code. How to fix that.Please help me out.Thanks in advance ' Regards Yogesh from numpy import * from scipy import * from scipy import signal, misc import sys,time,os,gc import matplotlib import matplotlib.pyplot as plt from numpy.random import * from pylab import plot, show, ylim, yticks,xlim from pylab import * x=loadtxt('/home/jaguar/Desktop/45.txt') x=x[0:1399] y=arange(len(x)) plt.figure(2) plt.plot(y,x,'k-') #minorticks_on() grid(True)#, color="r", ls="-") gca().xaxis.grid(True, which="minor", color="r") #gca().yaxis.grid(True, which='minor') #grid(True, which="minor", color="r") show()#l -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to save file in to image in desired resolution in matplotlib?
Dear All, I am using one image of 235X130 and plotting the curve on it, now when i save it it goes in the resoltuion of 800X600, I want to keep the resolution intact.What can be done for that to keep the resolution same? I am using savefig('/home/jaguar/Softwares/Development/Python/bunty.png') Thanks in advance! Regards Yogesh -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to remove white space
Dear All, I have one .png image of 940X780 and i am plotting waveforms on it. When I save this plot as .png , matp[lotlib gives image in 800X600 that too with white space. I dont want to keep the white space and i want the same resolution as original image.How should I go ahead? Thanks in advance!!! Regards Yogesh -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users