How to plot two set of data with same y-axis but different x-axis to the left and right of the y-axis #2
How to plot two set of data with same y-axis but different x-axis.
One dataset to the left and one dataset to the right of the y-axis.
...How can I plot two curves with two different y-axis (placed at right and left) with one reverse-logarithmic x-axis?
How can I plot two curves with two different y-axis (placed at right and left) with one reverse-logarithmic x-axis?
Something like this BUT with a reverse x-axis for both curves:
x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
[AX,H1,H2] = plotyy(x,y1,x,y2,'semilogx');
"Amir " <email@example.com> wrote in message <firstname.lastname@example.org>...
> How can I plot two curves with two different y-axis (placed at right and left) with one reverse-logarithmic x-axis?
> Something like this BUT wit...How can I plot two different y-axis (right and left) with a reverse-logarithmic x-axis?
Let us look at this example:
x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);
[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');
Now how can one reverse x-axis and at the same time in logarithmic scale?
Even using (Tools>Edit plot>Property edittor>Axis) in Figure window is not giving controls on axis of second data sets (x,y2) plot here!
...two tendencies plot for the left Y axis and one bar plot for the right axis ?
I am wondering if you can provide some solutions. How to draw two tendencies plot for the left Y axis and 1 bar plot for the right axis?
Thank you very much.
"Kuo-Hsien" <email@example.com> wrote in message
> Hi all,
> I am wondering if you can provide some solutions. How to draw two
> tendencies plot for the left Y axis and 1 bar plot for the right axis?
Use PLOTYY with six input arguments, the fifth being the handle to the
function that draws the "two tendencies" plot and the sec...one scatter plot with 2 x axis and 2 y axis, one of the x axis being a function of the first x axis
Hello to all!
I'm trying to do a Hertzsprung-Russell diagram like this one: http://en.wikipedia.org/wiki/File:HRDiagram.png
If you see, the temperature (top x axis) is not a linear function of the color (bottom x axis), and i cant find a way to do this.
% to read the stars data:
filename = 'Hipparcos_stars2.xlsx';
sheet1 = 1;
xHRcolor = 'G2:G19934';
yHRmag = 'I2:I19934';
xHRtemp = 'J2:J19934';
yHRlum = 'K2:K19934';
HRx_c = xlsread(filename, sheet1, xHRcolor);
HRy_m = xlsread(filename, sheet1, yHRmag);
HRx_t = 10.^(3.9396...Plotting three different data sets using two different y-axis
I want to plot three data sets on a single axis using two different y-axis.
Specifically, I want to plot two data sets using the errorbar. These values range between 80-100, for this two plots I want to have the y-axis on the left. Second, I want to plot a bar display on the SAME subplot using the bar command, but for the y-axis of the bar to be on the right, here the values range between 0-2.5.
Can anyone help me with making this plot?
Thank you :)
...matlab figure/axis properties / more properties/ x axis and y axis shifting
i want to shift the x axis and y axis of my matlab figure in the centre of the plot without disturbing the plot pattern.
i want to know what the new values of the new data would be?
also i want to do this using matlab.
i saw that in matlab there is axis properties option, but they are like,
x axis option : top and bottom
and y axis option as : left and right , thats all.
how can i get them at centre.
plz explain anybody.
On 4/19/2012 12:46 PM, shahnaz fatima wrote:
> i want to shift the x axis and y axis of my matlab figure in the centre
> of the plot without...Two x axis and two y axis on imagesc
I'v got a 2d array of data that i plot using the code seen below. I need there to be two x axis and two y axis (top and button - left and right). The x axis's are multiple of eachother. I need "vectorX1" and "vectorY1" to be the 2nd axis's. See my code her:
vectorX = X(1:column);
vectorY = zeros(row,1);
stepsize = 0.047625*10^(-6);
%vectorX = (vectorX - mean(vectorX))*stepsize*10^3;
%vectorY = (vectorY - mean(vectorY))*stepsize*10^3;
map = colormap;
the_min = min(min(Array));
the_max = max(max(Array));
img = round(64*(Array...plotting data points with numerical y-axis and a string x-axis
I've got 8 1x2 vectors that I would like to plot. The first value in each vector belongs to the 'x90' category and the second value belongs to the 'xnovib' category.
I'd like the x-axis to have two "values".... namely 'x90' and and 'xnovib'. The y-axis will be scaled to the numerical inputs in each of the 8 vectors. How can I plot this with a line joining the two points from each vector considering that the y-axis is numerical and the x-axis is a string.
Thanks in advance
"Farid Medleg" <firstname.lastname@example.org> w...bar same X-axis two Y axis
I have two sets of data of different scales. From which I try draw a double bar chart. Because of the problem of differents scales, only one bar can be seen in the figure. One solution can be to normalized the data with large scale, but I wish to plot the bar with their real scales.
Can you help me to draw a multi-bar with the same X-axis and two-Y axis such that the scale of the first Y-axis is for the first bar and the scale of the second one corresponds to the second bar.
"Et'o Pat" <email@example.com> wrote in message
news:firstname.lastname@example.org...y-Axis and x-Axis from different Files
i want to create an gnuplot plot from different files in one. Example:
x-Axis from one file force.dat u:2 and y-Axis from way.dat u:2. I find no
way to do this. gnuplt makes two lines.
have anyone an idea?
Marc Wiemers wrote:
> i want to create an gnuplot plot from different files in one. Example:
> x-Axis from one file force.dat u:2 and y-Axis from way.dat u:2. I find no
> way to do this.
That's because there isn't one. Data for one curve must be in one file,
period. So you'll have to combine your two files into one, at least for
the duration of the "plot" command. On sufficient Unix-like platform, a
variant of the following should work:
plot "< paste force.dat way.dat" using 2:4
...two y axis with one x axis
Hi every one please help me in a simple program
how it is possible to plot marks on y axis with two bars on single x-axis point.
for example student A with two bars of Math and English
>> doc bar
...How to set axis equal only to x and y axis?
As you know, 'axis equal' can make axis equal to x y and z axis.
However, I want to apply 'equal' to 'y' and 'z' axis, let 'x' axis be
Any comment or advice be my pleasure.
On Dec 7, 12:27 pm, Yumnam Kirani Singh <kirani.si...@gmail.com>
> You have to use it manually on the graphics handle using the set command.
Can you give me more about it?
I really did not know which property should be set.
You have to use it manually on the graphics handle using the set command.
...Top x-axis and right y-axis
Hello. I have a simple X-Y plot but I was wondering if there is anyway I can add the same x-axis (with the same ticks) on top of the figure. Also, I'd like to add a y-axis on the right edge of the figure. How can I do that? Thanks a lot.
> Hello. I have a simple X-Y plot but I was wondering if there is
> anyway I can add the same x-axis (with the same ticks) on top of the
> figure. Also, I'd like to add a y-axis on the right edge of the
See "Using Multiple X and Y Axes" in the "Axes Properties" chapter for
an exampl...plotting a second y-axis with respect to the first y-axis
I have two data sets, y1 and y2, which are both based on single x-axis.
I want to create a second y-axis with a non-uniform scaling so that each point on the second y-axis corresponds to one point in the first y-axis. I do not want to actually plot y2 based on x; rather, I want to change the scaling of y2 so that it corresponds to the points in y1. How can I do that?
On 3/9/2014 3:52 PM, Elnaz wrote:
> I have two data sets, y1 and y2, which are both based on single x-axis.
> I want to create a second y-axis with a non-uniform scaling so that each
> point on the...Remove right y-axis and top x-axis
I noticed that MATLAB automatically hide or displays the lines/axes on the top side or right hand side of a plot, while I am not using these as axis.
How can I manually hide the lines, such that I'm only left with the x- and y-axis?
On 9/29/2012 3:40 AM, monnq wrote:
> I noticed that MATLAB automatically hide or displays the lines/axes on the top side or right hand side of a plot, while I am not using these as axis.
> How can I manually hide the lines, such that I'm only left with the x- and y-axis?
give an example
Normally a plot(x,...Normalize X axis and set Y axis limit
I have data similar to the following:
x = [23.45,24.5,28.2,29.4];
x2 = [39.2,41.5,42.0,44,38.7];
x3 = [199.2,198.4,199.7];
In order to plot this data, I have done something like the following:
y = ones(1,length(x));
y2 = 2*(ones(1,length(x2)));
y3 = 3*(ones(1,length(x3)));
What happens when I plot this, is that both the X axis and Y axis
scales auto adjust to fit the new data.
I would like the X axis to remain the same (stationary), so that the
minimum value of x, x2, and x3 all start on the...Plot with two Y-axis: 2nd axis misaligned
I'm using the Student version release 14 SP3.
I am ploting a vector (closing prices) of 379,025 entries on the
first Y-axis (left) and the relative change in price on the second
I am using the axes method to manipulate both graphs, as explained in
the Matlab examples (http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f1-11215.html#f1-11217)
While the example above works just fine, the secondary of my
particular case is shifted downards. The shift becomes even bigger
when I reduce the size of the plot window.
I do not have a printscreen to sho...Surface plot for data with same x axis but different y axes
I have a somewhat unusual set of data I need to plot. I want to plot this as
a surface plot (like surf) as that would really convey the information most
What I have is 9 different datasets for different values of a physical
variable A (each with 41 points). Each of the 41 points corresponds to data
a certain number of standard deviations away from the mean. The standard
deviation for each of the 9 sets is different, and physically corresponds
to another quantity B.
If I plot using surf, with the x axis being A, and y axis being standard
deviation multiples, I do not have a...Plot 3 sets of data on two y-axis in log scale.
I have been trying to put three data sets on left and right y-axis, but couldn't figure out how. Below shows data:
What I want to do is to plot (x1,y1) and (x2,y2) on the right y-axis in log scale and (x3,y3) on the left y-axis again in log scale.
Could some one please help me on this?
Thanks very much.
On 7/9/2013 12:28 PM, Hadi Mohammadi wrote:
> Hello there,
> I have been trying to put three data sets on left and right y-axis, but
> couldn't figure out how. Below shows data: x1=;
> y1...I need to plot dates on the X axis and numeric values on the y axis
I have an Excel spreadsheet with the 1st column being a part number,
the next column being a date ie.. 06/30/2004, and the third column
being a numeric vale. I need to parse the values for the date and
numeric value using the part number, for a graph or chart.
How do I convert the date values on the X axis so they will display
Ok I think this would be easy could you post a sample file of this>
Thanks I used some of the code that was in the vi and modified it to
work in my vi.
...plotting bars and error bars on same axis using different y-axis
I had a question I wanted to ask regarding plotting different types of displays on the same x-axis only using different y-axis. Specifically, I have two data sets which have exactly the same x-axis, so I want to plot them both on the same subplot. The first data I want to plot using an errorbar display and the second one using a bar display. I want to have two different y-axis for each plot. I tried using the plotyy function, but it doesn't work with errorbars and bars displays.
Does anyone have an idea on how to do this?
Thank you :)
On 2/16/2012 1:25 AM, fdfs tank wrote:
&...How to extract the x-axis and y-axis current ticks of a plot from AbsoluteOptions?
Many times I find I need to change the Plot Ticks (mostly to make the ticks
display in units of Pi for example instead of just in pure real numbers).
The only way I know how to do this now is this:
I build my own Ticks lists, and then do
But the problem with this, is tha I have to guess (Actually I do little more
than guessing) to obtain a good number of ticks to use, else I get too few
ticks or too many.
But what would be better is to use the Ticks Mathematica uses on the plot
before I change the ticks myself. T...i need to plot 6 arrays on the y axis and one on the x axis
i need to plot 6 arrays on the y axis and one on the x axis.
The XY graph would show 6 lines of data points plotted against one array wich would be my x axis.
All arrays are the same size.
for example monitoring voltages on 6 devices over temperature.
voltages would be the y scale and temperature would be the x scale.
i know you can plot multiple wave forms in a waveform graph.
When I use the xy graph it only shows one line.
i believe it can be done because it the properties menu there's an option to show multiple plots.