how to change the unit of the axis

  • Permalink
  • submit to reddit
  • Email
  • Follow


Hi guys,

I am plotting some variable, say y, which is measured in percent. For
example, y=[5% 10% 20% ....]

Now, when I plot y, I also want the percent sign "%" shown on the y-
axis. Do you guys know what command I should use?

Thanks a lot!

John
0
Reply john131411 (16) 9/29/2008 11:45:55 PM

See related articles to this posting


An example:

plot(1:10)
set(gca,'ytickl',{'1%','2%','3%','4%','5%','6%','7%','8%','9%','10%'})
0
Reply spamanon (2438) 9/30/2008 3:24:01 AM
comp.soft-sys.matlab 203822 articles. 539 followers. Post

1 Replies
339 Views

Similar Articles

[PageSpeed] 25


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

Change units on plot x axis
Gnuplot 4.2. I have a plot combining a function and data over days; I would like to switch the x axis from days to months (of 30 days). Can this be done without recoding the data and function? Ie, can it be done using a command that alters axes? "help plot" shows that an "axes" option exists but I cannot find help for it. Una Una wrote: > Gnuplot 4.2. > > I have a plot combining a function and data over days; I would like > to switch the x axis from days to months (of 30 days). Can this be > done without recoding the data and functi...

How to change Ptolemy Plot Graph x axis unit width
can you tell me how to change the gap width between each point on the Ptolemy linegraph? like when I do addPoint(1, 0, 1, false); addPoint(1, 1, 1, false); ..... addPoint(1,4000,1,false); I want to set the gap between each point to be 10 pixels wide, how do to do that? Peter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrat...

Axis position does not follow axis ratio scaling change
Hello All, I have a small problem when using axis scaling ratio commands, e.g. setting 'dataAspectRatio', or using axis equal + axis tight. After setting the desired ratios, I need to determine the precise position (extent) of the axis in the figure window, e.g. using get(gca,'position'). However, the position values returned still correspond to the "unscaled" axes, which suggests Matlab is rescaling the visible axis lengths without changing the underlying axis position property. The following provides a fairly minimalist example: figure(1) clf plot( 1:10, 2:2:20...

Change axis
Hello, I am plotting a simple function as follows: syms x; ezplot(2^x, [-10, 10]); Is it possible to make the X and Y axis to display in a standard way (passing my the origin). I would also like to display: an arrow at the end of each axis; a X, Y and O character in near the X axis arrow, Y axis arrow and origin. And finally the function expression, 2^x, near the function line. Basically I am using Matlab to create a few charts to my students but I would like to do it in this more standard way (for them). Thanks, Miguel ...

axis units
I am plotting a figure in Matlab. The range is from -4e6 to +4e6. So one axis has the ticks -4, -3... 1 2 3 4 and then a 'x 10^6' at the top of the axis. I would like to add a unit to the 'x 10^6' such that it reads 'x 10^6m' but I can't find out how to do it. When a add a figure label, it places the label text far away from the scientific notation. Any ideas? Thanks! Jack wrote: > I am plotting a figure in Matlab. The range is from -4e6 to +4e6. So > one axis has the ticks -4, -3... 1 2 3 4 and then a 'x 10^6' at the top > of the...

want plot y axis value according to change of x axis value
I want plot y axis value according to change of x axis value. in the below site, value change according to change of x value. how can i plot line at y axis. http://www.technology2skill.com/electronics/small_signal_analysis.html "se chss" wrote in message <io5opt$kdu$1@fred.mathworks.com>... > I want plot y axis value according to change of x axis value. > in the below site, value change according to change of x value. > how can i plot line at y axis. > http://www.technology2skill.com/electronics/small_signal_analysis.html There are so many graphs on your lin...

one line only, change x axis from number to words, and change keys into points of the line?
Hello all: I searched the manual but not find the following answers. I want to draw a one line chat, with different points related with the time of each experiments. For example: x axis is exp1, exp2, exp3, exp4, exp5, and y axis is the time. I know how to set y axis, but my questions are: 1. how can I change x axis from number 1-5 into words like "exp1", "exp2", "exp3", "exp4", "exp5". 2. Since there is only one line, I want the legend (keys) to be the points of the line, not each line, how can I do that? Using...

Different units on a same axis
Hello, When I plot a function, is it possible to have two horizontal axis (at the top and at the bottom), wih different scales ? I am plotting Fast Fourier Transform, and I'd like to have the frequency on one axis, and the indexes on the other one. Thanks. "Oodini" <svdbg@free.fr> wrote in message news:407af4e5$0$20146$636a15ce@news.free.fr... > Hello, > > When I plot a function, is it possible to have two horizontal axis (at the > top and at the bottom), wih different scales ? > > I am plotting Fast Fourier Transform, and I'd like to have the fr...

Changing 2D axis
hello I'd like to display 3 views top, front, and side in 2D mode (I have the projected coordinates) how can I change the axis. for exemple the first view uses X & Y the second X & Z the third Y & Z Blue_Bear wrote: > hello > > I'd like to display 3 views > > top, front, and side in 2D mode > (I have the projected coordinates) > > how can I change the axis. > > for exemple > the first view uses X & Y > the second X & Z > the third Y & Z > Use glRotate() to rotate the model 90 degrees. -- <\___/> /...

Changing axis in plot
I have to plot x and y where x varies form 10^(-3) to 10^(2) and y varies from 10^(-3) to 10^(4) when i am plotting, in the plot axis comes like x = 2,4,6,8,10 y = 20000,40000,60000,80000,100000 can i get the axis like x = 10^(-3), 10^(-2),10^(-1)... and similarly for y manu Hi, read this : <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#ZScale> J�r�me change the axes to logaritmic scale � set(gca,'xscale','log') � set(gca,'yscale','log') "manu" <myself_manu@yahoo.com> wrote in message news:eeff030.-1@...

change units 274316
Help Please, Is there a way to change all the units of an assy to IPS (inch pound second) without having to go to each part individually? I have a assy with 1000 line items on the bom and some are modeled in metric units some in inch I need to get the weights of each component but they report in the bom as grams for the metric lbs for inch. Tia Dennis ...

Change units 461573
I made my drawing in metric units but want to save them in imperial units in my DXF file. Can this be done? James <james@holbrooks.net> wrote in news:pLtXd.5166$Ru.1794@okepread06: > I made my drawing in metric units but want to save them in imperial > units in my DXF file. > Can this be done? > Do you mean something other than changing the document's units to imperial before doing the SaveAs? To do that automatically, you'd need a macro. ...

changing units on axes
I'm making a contour plot of an array that contains only z values (heights) using contour(array). Contour marks the x and y axes simply with the array's row and column number (integers). The array is actually a black and white image from a camera. Is there an easy way to change the contour plot's axes to, say, feet or meters? I.E. is there a way to multiply the plot axes by a scale factor? I'm not interested in going back to all my data files and adding that information in. I'd rather scale them when they're plotted. Thanks, SJG Stephen Guimond wrote: > > >...

Change the axis in imagesc
Hello to everyone, I find a nice way to plot in a table my vectors: x=[0.25 0.5 0.75 1.00] y=[0.25 0.5 0.75 1.00] z= [27 95 74 37; 89 35 55 40; 79 72 30 39; 43 46 41 3] I did it with: h=imagesc(x,y,z)...but my problem is that i need to put tick marks at 0.25 0.5 0.75 and 1, i.e at the middle of every square, because by default it is as: 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1...any help? Thanks in advance. "Jose " <jose.l.vega@gmail.com> wrote in message <hsrv94$e7m$1@fred.mathworks.com>... > Hello to everyone, I find a nice way to plot in a t...

changing axis increments
Is there a way I can change the increments on my x and y axes? i changed the limits for, say, the y axis from -5 to 5. But the graph takes 5 as the increment so i have 3 numbers on the y axis: -5, 0 and 5. How can i change this so the increments are by 1? "Bilal " <bilalhaider87@gmail.com> wrote in message news:i65hs8$c1k$1@fred.mathworks.com... > Is there a way I can change the increments on my x and y axes? i changed > the limits for, say, the y axis from -5 to 5. But the graph takes 5 as the > increment so i have 3 numbers on the y axis: -5, 0 and 5. How can ...

Change axis position
I am using a semilogy plot to represent a data serie. My yy scale goes from 10^-4 to 10^4, and i want to change xx axis to be placed at y=10^0. Anybody knows how to do it keeping the logarithmic scale of y? Any tip is welcome, Bel ...

changing the format of axis
I want to plot some value data (0.2,0.1,0.5) against text data ('55', '-40', '0'). When I plot them, it seems the text data are conveted to float data and are shown as values with the same intervales like 50, 0, -50. I wonder how I can change the format of text data that it shows the exact values? You'll need to use the [XYZ}TICKV keyword, as documented in the PLOT procedure. On Nov 21, 9:57=A0pm, Brian Wolven <brian.wol...@gmail.com> wrote: > You'll need to use the [XYZ}TICKV keyword, as documented in the PLOT proc= edure. well, it still doesnt show...

Change of x axis
Hi, I created a plot (a 2D contour plot of a matrix) and the x axis is set to e.g. 1 to 30. Now I want to cgange the range of the axis to, say 6 to 15 (without changing the plot or zooming into the plot). I want to hace exactly the same plot, the only thing changed is the range of the x axis. How to do that? Alexander Dietz wrote: > > > Hi, > > I created a plot (a 2D contour plot of a matrix) and the x axis is > set to e.g. 1 to 30. Now I want to cgange the range of the axis to, > say 6 to 15 (without changing the plot or zooming into the plot). > I want to hace exac...

change precision axis
How can I increase the precision of the axis in a simple plot to more than 2 digits? When I want to set the upper limit for one of the axis to e.g. 0.0455 then it is set to 0.046 although I work in the manual mode. Steven Van Petegem wrote: > > > How can I increase the precision of the axis in a simple plot to > more > than 2 digits? When I want to set the upper limit for one of the > axis > to e.g. 0.0455 then it is set to 0.046 although I work in the > manual > mode. Hello Steven, do you use the property editor for your settings? I observed similar behaviour for...

change axis scale
Could someone kindly help with this: I am trying to use the "axis" command to change the scale for the situation that one of the axes is "auto"; but for some reason I can't figure out the right code. I am not sure what is missing. Also, can I change the axis scaling inside the "set" command? Thanks, ali. "ali " <amkashef@gmail.com> wrote in message <gmi221$oqk$1@fred.mathworks.com>... > Could someone kindly help with this: > > I am trying to use the "axis" command to change the scale for the situation that one of ...

Changing Headers in Axis
Hi all i have generated java files from wsdl using WSDL2Java. I need to invoke a method in the web service.There is a stub file generated and iam using them to test. I want to change the request headers . Generated one POST / HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: localhost:8008 Cache-Control: no-cache Pragma: no-cache SOAPAction: "urn:Login" Content-Length: 441 Expected one POST / HTTP/1.1 Authorization: Basic cHI6cHI= Content-Length: 441 Content-Type: ...

Changing axis of a graph
I am interested in having axis like 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 How do I do This??? "Rahul Uk" <rauluk23mj@gmail.com> wrote in message <g0gj3t$41s$1@fred.mathworks.com>... > I am interested in having axis like > > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > 1 2 3 4 5 6 7 8 9 10 > How do I do This??? Hai, Try the following: axis([1 10 1 10]) set(gca,'YDir','reverse') Hope it helps, Ashwini "Ashwini Deshpande" <vd.ashwini@mathworks.com> ...

Changing axis on the fly
I'm looking to change the X/Y axis max ranges at runtime, I know how to do this from within the same VI but I don't see the properties through the Property nodes. Am I going about this the right way? Ron Chart Screen shot.jpg: http://forums.ni.com/attachments/ni/170/204054/1/Chart Screen shot.jpg Use the "To more specific class" node (in the application Control subpalette) to change the wire class and tell LabVIEW that you want to access a graph property. &nbsp; <img src="http://forums.ni.com/attachments/ni/170/204076/1/Change%20Class.PNG"> Message Ed...

changing axis scale
Hi All, Could someone please suggest how I refer to those double tilde(~) symbols on the y-axis which indicate a break in the continuity of the scale? for example, as you read up the y-axis units, one might see: 0, 1, 2, 3, 4 double (~), 17, 18, 19, 20 (a log scale wouldn't show the fine detail of data in both areas.) Is this possible to do with IDL? thanks! bg BG writes: > Could someone please suggest how I refer to those double tilde(~) > symbols on the y-axis which indicate a break in the continuity of the > scale? for example, as you read up the y-axis units, one might...