Re: ipython: Multiple commands on the same line and newlines
Phil, there is one more way you can run all commands as in linux shell.. import commands s, o = commands.getstatusoutput('x=10;for i in $(seq $x); do echo $i ; done') print o 1 2 3 4 5 6 7 8 9 10 On Sun, Apr 17, 2011 at 11:40 AM, Phil Winder philipwin...@gmail.comwrote: On Apr 17, 1:11 pm, Andrea Crotti andrea.crott...@gmail.com wrote: Phil Winder philipwin...@gmail.com writes: Yes, that does not produce an error, but it does not work. Please refer to my first post. Try the first code, you will get a syntax error. Placing things on one line makes for easy history scrollback. In your version you will have 2 lines of history for the x = 0 term and the while ... term. I don't want to have to press up twice, especially when the code was in the distant past! Also cpaste might be ok for scripting, but it looks too clumsy to use at the command line. Cheers, Phil Well I guess that's the way it is with the interpreter.. But I don't see the sense in doing everything from there, just write the code to a file and use %edit from ipython to change and run it, it's quite nice and easy too. Ok, thanks all. It's a little disappointing, but I guess that you always have to work in a different way when you move to a new language. Andrea's %edit method is probably the best compromise, but this now means that I will have to learn all the (obscure) shortcuts for vi! Cheers, Phil -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: how to modify axis tick values exponential value location in matplotlib
not able to change the location of exponent/offset label in the axis, in case of multiple y axis exponent/offset label of one axis is overwriting other axis value, how to control the location of this lable(like 1e8).Can anybody help me solving this issue. On Sun, Jan 30, 2011 at 9:55 AM, Rajendra prasad Gottipati rajendra4li...@gmail.com wrote: it seems relevant to my issue. http://stackoverflow.com/questions/3677368/matplotlib-format-axis-offset-values-to-whole-numbers-or-specific-number On Sun, Jan 30, 2011 at 9:45 AM, Rajendra prasad Gottipati rajendra4li...@gmail.com wrote: Hi, I am plotting the graph for long values like(267838484) so that its printing the tick lables on axes as 2.6 , 2.8 and at the top its having a text like e07 something like this, I want to move the display location of this exponent (e07) as i am having trouble in having multiple y-axis as they are getting mixed in text. like (e07 is written on top of e08 of other axis) Can any one help me in getting this done? also i am having issue in getting tick lables of x-axis while plotting with pylab.plot_date. Regards Raja -- http://mail.python.org/mailman/listinfo/python-list
how to modify axis tick values exponential value location in matplotlib
Hi, I am plotting the graph for long values like(267838484) so that its printing the tick lables on axes as 2.6 , 2.8 and at the top its having a text like e07 something like this, I want to move the display location of this exponent (e07) as i am having trouble in having multiple y-axis as they are getting mixed in text. like (e07 is written on top of e08 of other axis) Can any one help me in getting this done? also i am having issue in getting tick lables of x-axis while plotting with pylab.plot_date. Regards Raja -- http://mail.python.org/mailman/listinfo/python-list
Re: how to modify axis tick values exponential value location in matplotlib
it seems relevant to my issue. http://stackoverflow.com/questions/3677368/matplotlib-format-axis-offset-values-to-whole-numbers-or-specific-number On Sun, Jan 30, 2011 at 9:45 AM, Rajendra prasad Gottipati rajendra4li...@gmail.com wrote: Hi, I am plotting the graph for long values like(267838484) so that its printing the tick lables on axes as 2.6 , 2.8 and at the top its having a text like e07 something like this, I want to move the display location of this exponent (e07) as i am having trouble in having multiple y-axis as they are getting mixed in text. like (e07 is written on top of e08 of other axis) Can any one help me in getting this done? also i am having issue in getting tick lables of x-axis while plotting with pylab.plot_date. Regards Raja -- http://mail.python.org/mailman/listinfo/python-list