Pylab plot title loses numbers when printing Programming Software Development by a.w.howell Using Python with pylab included, I have created a plot. In the plot's … "IndexError: Unexpected SeqBase<T> length" from pylab's savefig Programming Software Development by ronbarak …minimal script that demonstrates the problem is: import pylab pylab.savefig("foo.png") A Google search…262/5/3)). *Anyone knows how to get `pylab.savefig` to work?* $ python demonstrate_Unexpected_SeqBase_error.py Traceback…quot;, line 2, in <module> pylab.savefig("foo.png") File "/usr… how do I manually enter bins in pylab histogram plot? Programming Software Development by tottletj …, but appears the 'log=True' command in the pylab.hist() only refers to the y axis, rather than…know i can manually log the x axis (with pylab.semilogx()), but I'm tried finding out how to…example, if I have the following code: import pylab a=[0.1,0.3,0.5,0.5,…,0.7,0.9] pylab.figure() pylab.hist(a,bins=4,range=(0,1)) pylab.show it gives me a… No lines in pylab graph? Programming Software Development by lagspike A simple physics graph... [code=python]import pylab a_time = range(0,141,10) a_R =… i in range(0,15): pylab.plot(a_time[i],a_R[i], 'x') pylab.errorbar(a_time[i], a_R[i…], 0.5, 0.05) pylab.show() [/code] I…'m guessing the [icode]pylab.plot[/icode] line isn't… Re: No lines in pylab graph? Programming Software Development by lagspike Ok, i solved the problem. I needed to plot multiple values in one call to make them join up: [CODE=python]import pylab a_time = range(0,141,10) a_R = [3.0,2.8,2.56,2.36,2.2,2.0,1.86,1.7,1.6,1.43,1.3,1.2,1.1,1.06,0.96] pylab.plot(a_time,a_R, 'x') pylab.errorbar(a_time, a_R, 0.5, 0.05) pylab.show()[/CODE] Re: wxPython and pyLab Programming Software Development by Robbert …forums/thread239191.html[/url] [CODE]import wx import pylab class MyFrame(wx.Frame): """…, labels=labels, autopct='%1.1f%%', shadow=True) pylab.title('Raining Hogs and Dogs', bbox={'facecolor':'0.8…', 'pad':5}) #plt.show() pylab.savefig("test.png") # create an internal … Re: how do I manually enter bins in pylab histogram plot? Programming Software Development by tottletj [QUOTE=tonyjv;1488477]If pylab has not it, I remember that numpy has function for classifying values.[/QUOTE] what is the numpy function? I can't find one. How would I then plot the histogram with numpy instead of pylab? Re: how do I manually enter bins in pylab histogram plot? Programming Software Development by TrustyTony If pylab has not it, I remember that numpy has function for classifying values. Re: Plotting with Pylab Programming Software Development by vegaseat Downloaded and installed [B]matplotlib-0.99.3.win32-py2.6.exe[/B] for Python26 on my Windows box This will work .... [B]import pylab[/B] but on some other OS this may be better ... [B]import matplotlib.pylab as pylab[/B] since pylab.py is in package matplotlib Re: Plotting with Pylab Programming Software Development by funfullson Thanks dear.but i have problem importing the pylab. i am working with the windows and python 2.5.and have installed the pylab.but it returns me "No module named pylab".I have such problem with qt.please guide me.thanks. Re: Plotting with Pylab Programming Software Development by vegaseat … the editor and NOT in the shell, than after the pylab.show() statement I don't get the >>>… shell. Also, if I add a print statement behind the pylab.show() statement above, i.e. print 'bla bla', then 'bla… bla' is NOT printed![/COLOR] Since pylab uses Tkinter itself, there could be a problem with the… wxPython and pyLab Programming Software Development by Robbert … seem to get it to work without the pylab interface. [CODE]import wx from pylab import * class MyFrame(wx.Frame): ""… Re: Plotting with Pylab Programming Software Development by Tech B Maybe you guys didn't install the pylab the correct way. I've never used pylab, but usually when its an import error python can't find the lib's you installed. Try installing pylab with the setup.py instead of the installer .exe (assuming you used the installer .exe) for thoese of you who have import errors. Re: Plotting with Pylab Programming Software Development by Edoch after pylab.show() I don't get the >>> in IDLE! The program stalls on that last pylab.show() statement. Re: Plotting with Pylab Programming Software Development by vegaseat [COLOR="Red"]after pylab.show() I don't get the >>> in IDLE! The program stalls on that last pylab.show() statement.[/COLOR] For heaven sake don't run the code from the Python shell! Run it from the editor! The python shell is used for testing very short Python code concepts, mostly one-liners! Re: Plotting with Pylab Programming Software Development by Edoch OK, let's put it different! If I run a program as i.e. the program above, of course in the editor and NOT in the shell, than after the pylab.show() statement I don't get the >>> back in the shell. Also, if I add a print statement behind the pylab.show() statement above, i.e. print 'bla bla', then 'bla bla' is NOT printed! Plotting with Pylab Programming Software Development by Ene Uran ….net/[/url] It has, amongst many other things, the module pylab that allows for high quality plotting of data. All you… Re: Plotting with Pylab Programming Software Development by sabsab … script which load a csv file and draw it using pylab. My aim is to call the function from excel and… Re: Plotting with Pylab Programming Software Development by reemolaby Can someone help in telling me how to install pylab with python version 5 and not 6? Because MGL tools works with Python ve 5 ... Thanks Re: Plotting with Pylab Programming Software Development by _mattb You can add pylab.close() as the last line. When the pop-up figure is closed, you will have control over the IDE again. Ctrl-c works too (keyboard interrupt). Re: Plotting with Pylab Programming Software Development by TrustyTony Close the pylab window and the prompt comes back and your print will print. Re: Plotting with Pylab Programming Software Development by asdf_efae99324_ …: [code=python] import numpy as np import matplotlib import matplotlib.pylab as plt ... matplotlib.use('TkAgg') ... nS = np.arange(0, 10… Re: Pylab plot title loses numbers when printing Programming Software Development by Gribouillis On my computer (mandriva linux 2010), the number is not lost when I save as .ps or .pdf. Re: Pylab plot title loses numbers when printing Programming Software Development by a.w.howell [QUOTE=Gribouillis;1165936]On my computer (mandriva linux 2010), the number is not lost when I save as .ps or .pdf.[/QUOTE] Ok, thanks Gribouillis. I guess the issue isn't with python, but with the pdf/paper printer. Re: Pylab plot title loses numbers when printing Programming Software Development by woooee Two possibles would be to change %.2f to %3.2f which can mean a total of 3 bytes, one before and two after the decimal. If your OS interprets this way, then you originally have zero bytes allocated to the float. Second, omit the epsilon an see if the numbers print OK, i.e. the epsilon is overlaying the number (note the equal sign is missing as … Re: Pylab plot title loses numbers when printing Programming Software Development by a.w.howell [QUOTE=woooee;1166408]Two possibles would be to change %.2f to %3.2f which can mean a total of 3 bytes, one before and two after the decimal. If your OS interprets this way, then you originally have zero bytes allocated to the float. Second, omit the epsilon an see if the numbers print OK, i.e. the epsilon is overlaying the number (note the … Re: Pylab plot title loses numbers when printing Programming Software Development by woooee [QUOTE]I tried just having '.10' hardcoded, but still had the same problem.[/QUOTE]Which says you are overlaying it with something else, or the epsilon is pushing it off the page. If you are saving as postscript and not encapsulated postscript it is pretty easy to read the code as it is just a markup language. Edit: From what I can tell you … pylab in Tkinter Programming Software Development by katrien202 Hi, I want to put plots using pyplot in a Tkinter window, a frame. I want to have the options I usually have in pyplot figures: the user has to be able to zoom, save,... so a photo of the image will not satisfy. Does anyone now how to do this? Thanks [B]Again, don't clutter up the sticky with questions. Ask question in the regular forum.[/B] Re: pylab in Tkinter Programming Software Development by vegaseat Check out: [url]http://www.daniweb.com/software-development/python/threads/191210/1576303#post1576303[/url] Re: pylab in Tkinter Programming Software Development by Ene Uran Looks like this thread is solved.