| 1 | initial version |
Taking into account Emmanuel Charpentier’s comment, I propose the following solution, which consists of specifying the data on the axes manually:
plot(x,2,10^6,ticks=[[2,10^6/2,10^6],[2,10^6/2,10^6]], tick_formatter=[[2,10^6/2,10^6],[2,10^6/2,10^6]])
| 2 | No.2 Revision |
Taking into account Emmanuel Charpentier’s comment, I propose the following solution, which consists of specifying the data on the axes manually:
plot(x,2,10^6,ticks=[[2,10^6/2,10^6],[2,10^6/2,10^6]], tick_formatter=[[2,10^6/2,10^6],[2,10^6/2,10^6]])
or
def Plot(f,min,max,n): labX = [ min + k(max-min)/n for k in range(n+1)] labY = [ f(min + k(max-min)/n) for k in range(n+1)] P=plot(f,min,max,ticks=[labX,labY], tick_formatter=[labX,labY]) P.show() Plot(lambda x : x,0,10^6,5)
| 3 | No.3 Revision |
Taking into account Emmanuel Charpentier’s comment, I propose the following solution, which consists of specifying the data on the axes manually:
plot(x,2,10^6,ticks=[[2,10^6/2,10^6],[2,10^6/2,10^6]], tick_formatter=[[2,10^6/2,10^6],[2,10^6/2,10^6]])
or
def Plot(f,min,max,n):
labX = [ min +
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.