triple axis example
Hi,
As I showed in picture attached. I have veriy simple dataset and I want to make triple axis line graph. Is it possible?
So I have written a program in which we want MatLab to plot given data on a scatter plot and bar graph.
I can not really write the complete code here since its pretty long. So I will just describe the problem:
MatLab plots both graph (scatter and bar graph) but since the command for scatter plot comes after the bar graph, therefore Matlab deletes the bar graph and instead plots and gives out the scatter plot.
IS there a command which would allow Matlab to show both plots on two different windows.
Simply call figure; before plotting a second time. It might look something like this:
plot(...); % plot bar graph
figure;
plot(...); % plot scatter plot
I am using the iOS-charts library in (Swift 3) to plot my data into a scatter chart. I have a scatter chart and now would like a line chart to display a non-linear best fit line from the scatter data. Does the charts library have any easy functions for finding a non-linear best fit line, and if not how do I create a line from a function if a have to derive the best fit line function myself. I know how to create a line graph from data points but do not know if charts allows you to make one from a function. An example of what I'm trying to do is below. Any help is appreciated thanks.
Link to iOS-charts
http://www.appcoda.com/ios-charts-api-tutorial/
I want to have a scatter diagram and its regression line simultaneously in one chart. How it is possible in stimulsoft ?
You could add a Scatter Line to the Scatter chart.
I wrote the following code in matlab for plotting a graph. I have three curves in the same plot. I want to mention the particular class to each curve to which it belongs.How can I do it using same code that i wrote. Code is:
plot(mm,q1(1,:),'b')
hold on
plot(mm,q1(2,:),'g')
plot(mm,q1(3,:),'r')
plot(mm,q1(4,:),'m')
xlabel('time(yr)')
ylabel('probability')
hold off
I want to write 'M1 to M2'in plot corresponding to graph for plot(mm,q1(1,:),'b'). Similarily for other plots 'M1 to M2' , 'M1 to M3' ,'M1 to M4' respectively.
You can use legend as follows:
legend('M1 to M2','M1 to M3','M1 to M4');
This allows you to label curves.