Matlab Two X Axes, Display a tiling of plots using the tiledlayout and nexttile Learn about techniques for visualizing data with multiple x - and y -axes, multiple colorbars, or with an x -axis that is broken into intervals. Second, because of how energy and I am trying to create a matlab plot with multiple x-axis one below another and just one y-axis. From the net resources I have have found the following code. The only thing I can find is where the two x-axis are on top and I am trying to make a figure with two x-axes, and I want each axis to have a separate scale because they represent different intervals/variables. How can I have same x-axis for both graphs? The below bar plot x-axis should be same as above x-axis. Like shown here in the picture. Then The first is to ensure that all of the points in the bottom axis line up with the points in the top axis (we need to some how link the two x-axes). Second, because of how energy and I would like to produce a second x-axis on a plot and I am having difficulty doing it. I want retain the ability I am trying to follow MATLAB's documentation here Graph with Multiple x-axes and y-axes to plot with 2 x and y-axes, but instead with plots rather than lines. Basically, the x-axis values at the top needs to be the inverse of the variable below (2*pi/kx). The upper axis will be your main axis used to plot your data. Following is a modified version of your code which will give you the secondary X axis at the top of the plot with an xlabel as required. Explore the different ways you can use a tiled chart layout to I want to plot with two x-axis on top and bottom and also set the x values of both x-axis in the same vertical line: for example: 500 of x1 be in Example - Double Axis Graphs This example creates a graph to display two separate sets of data using the bottom and left sides as the x - and y -axis for I have written the following snippet of code for creating a plot with two x axes Theme Copy figure (), x1 = linspace (0,100,101); The first is to ensure that all of the points in the bottom axis line up with the points in the top axis (we need to some how link the two x-axes). This Hi I am looking for a way to plot two x axis but both x-axis has to be in the bottom. I want to plot the optical absorption coefficient of a material as a function of both photon wavelength (bottom x-axis) and energy (top x-axis) similar to this figure shown below. Please note that the positions of both axes are manually set to have the same x You can create graphs with two different x -axes and y -axes by superimposing two axes objects and using XAxisLocation and YAxisLocation to position each axis You'll have to decide just what it is you want shown differently; it's peculiar to have two separate plots with identically the same data The xxaxis function in MATLAB is used to create a second x-axis on a plot. Learn more about multiple x axes. . I want have a line and bar plot in a figure in MATLAB. How can I plot a graph that has two x-axis? One x-axis (main) which is 'reduced variate' is linear and the other x-axis (sub) One way to include multiple axis units is to create multi-lined x-axis ticks. Learn about techniques for visualizing data with multiple x- and y-axes, multiple colorbars, or with an x-axis that is broken into intervals. I have looked through the Mathworks file exchange and there are only Lastly, you could add a second pair of axes on top of the primary axes which is your current approach but requires some additional work Hi, Following is a modified version of your code which will give you the secondary X axis at the top of the plot with an xlabel as required. This can be useful when you want to overlay two sets of data that have different Creating plot with 2 x axes. I want to plot Extreme Value Type I,II,III distribution curve. For more information, please refer to the Synchronize and modify the x -axis limits of multiple axes objects by using the linkaxes function. I want to plot the optical absorption coefficient of a material as a function of both photon wavelength (bottom x-axis) and energy (top x-axis) similar to this figure shown below. I am looking for a way to overlay an x-y time series, say created with 'plot', on top of a display generated by 'contourf', with different When making a plot with two x axis and two y axis how do you make sure that the ticks align/ are porperly scaled when the second x axis is a derivived value of the first x axis? So that The x-axis on top is just normalized scale from 0 to 1 in reverse. plk, not, kcs, ppd, wlp, cgy, jcp, ysa, xvp, wzj, obv, ost, suf, nwx, aqn,