Grafana how can I make sure two plots' x-axis aligned perfectly - grafana

I have two plots queried from InfluxDB that share the same timestamps.
But as you can see in the pictures that because the y-axis label of the bottom graph takes up more space the two plots misaligned in the timestamp.
I would really like to be able to plot these two sets of data perfectly aligned so I can see how one affects the other.
Can you advice how I can achieve that ? Or being able to make a subplot that is draw two time series plots in one panel, sharing the x-axis would also be great.

Related

Zoom in plots simultaneously in Dymola

I tried to plot a few variables in Dymola, but when I want to zoom in on these plots, I need to zoom in on each of them manually, how could I zoom in on these plots simultaneously?
The case that makes most sense is to zoom on the x-axis which usually represents time in Dymola. You should be able to zoom all plot simultaneously by holding down the shift-key while doing a zooming-gesture mainly moving your mouse horizontally.
The result should look like the gif below (for the coupled-clutches demo from the MSL at Modelica.Mechanics.Rotational.Examples.CoupledClutches with the trajectories moved to separated subplots to show the effect).
A similar thing can be done by moving the mouse mainly vertically. This is useful in case you don't want to change the time-scale of the plot.
One addition:
Another neat feature that is actually not known very well thing, using the Alt-key in a similar way as described above. This will result in synched zooming for time AND adjusting the amplitude in all subplots, an example:

Plot two data sets on the same axes but offset along the x-axis

Probably my explanation is not good, I need following kind of graphs. Matlab, sigmaplot solution will be welcomed. Graphpad Prism may also be an option.
The x-axis is splitted, actually 2 data sets (same x-axis but different y-axis). it is error plot (mean I also need error bars)

Tableau Control Chart - Attribute measure incorrect

All
I have a control chart, with on the X-axis a time period, and the Y-axis the value of the measure (I'd like to plot all the points in a control chart).
However, I have 2 different values as a measure, which have the exact same date (up to a second match) but different measure values.
When I plot this on a control chart, instead of having 2 points in the control chart with value 500 and 550 for example - it gives me one point with a value of about 200.
It also gives a notification that there is a NULL value in this axis, which points to the X-axis where 2 records have the exact same date.
Any idea what I can do to make this correct - or make tableau draw the measure points correctly?
Thanks in advance!
It's difficult to answer without seeing more detail about your problem, but this sounds like a good candidate for a blended axis. (multiple measures sharing a single axis)
The easiest way to do this is to put your (probably continuous) datetime field on the row axis and one of your measures on the row axis to see one of then control plots. Then drag the second measure to the Y-axis until you see a little translucent two bar icon to indicate that you are adding a second measure to that axis, at which point you can release the pointer and you should see a two plots on the same axis.
If the scales for the two measures are radically different, you can instead drag the second measure to the right side instead to get a dual axis.

MATLAB: Plotting two different axes on one figure

The MATLAB surf plot below is essentially two plots plotted adjacent to each other. For clarity, I have included some code below used to prepare the plot:
band1 = horzcat(band1, eSurface2(:,:,1));
band2 = horzcat(band2, eSurface2(:,:,2));
surf(band2,'DisplayName','band2');
surf(band3,'DisplayName','band2');
I would like for the y axis numbering to restart at the start of the second graph. How do I go about doing that?
You can use the 'YTick' and 'YTickLabel' properties of the axis to control the ticks, this way you can make it start from zero for the second graph. It will require some trail and error to get it right. See the relevant doc here (you'll have to scroll all the way to the bottom of the page).
Take advantage of the following feature of 'YTickLabel': "If you do not specify enough text labels for all the tick marks, MATLAB uses all of the labels specified, then reuses the specified labels".

iOS Line charts with multiple y-axis

I am able to displaying multiple Y-axis using core plot, but my problem is I need to display different values on two Y-axis with different interval difference.
How to draw graphs using core plot same as above images.
Is it possible to draw graphs or not. If not possible please tell me reason.
If possible give me some suggestion or provide sample code using core plot.
Please help me.
Thanks in advance.
You need to use a separate "plot space" for each different axis scale. For these graphs, you would need two—one for the left y-axis and the x-axis and another for the right y-axis. See the Plot Gallery (the Plot Space demo) and CPTTestApp (Mac version) example apps for sample code.
For LineChartDataSet you have property axisDependency. This property could be
AxisDependencyLeft
AxisDependencyRight
For swift
.Left
.Right