Questions tagged [multiple-axes]
196 questions
1
vote
1 answer
Can one get the number of rows and columns from an instance of the Figure class from matplotlib?
Question:
Suppose one would like to place 4 subplots in one figure - either as 4 rows by 1 column, or as 1 row by 4 columns. One can use fig, axes = plt.subplots(nrows=..., ncols=...) to initialize this subplot. But, inputting nrows=4, ncols=1 and…

generic_display_name
- 13
- 1
- 4
1
vote
0 answers
Align x and y axis with twinx twiny in log scale
I want to create a plot with two x axis and also two y axis. I am using twiny and twinx to do it. The secondary axis are just a rescaling of the original ones, so I'm applying a transformations to get the ticks. The problem is that I am in log…

rseppi
- 21
- 3
1
vote
1 answer
Plotting a Secondary Y axis when Log Transformation in Primary needed
I m trying to plot a line graph with two axes (see pic). I tried many ways from examples taken from here but nothing worked. The left axis must be Log10 while the secondary (right) normal. Also, I do need to set their limits. All data come from a…

dplazas
- 23
- 8
1
vote
1 answer
Switch between two map axes in Matlab
Is there a way to switch between two map axes in the mapping toolbox in Matlab?
I created a basemap, then I created a small inset to show the map location in a more zoomed-out context.
I'd like to go back and add to the first map, but the inset is…

selene
- 394
- 5
- 17
1
vote
0 answers
Chart.js How to format datasets belonging to a specific Axis (I have two yAxes)
I have a chart with two yAxes. The right one is displayed in % but the datasets have values like [0.23, 0.7,..] and not [23%,70%,..].
So I want to display the tooltips and labels (chartjs-plugin-datalabels)of the datasets belonging o the 'percent'…

aleina
- 11
- 1
1
vote
1 answer
How to get two x-axes in one boxplot
I'm trying to get two x-axes in a boxplot in ggplot2; one is Site and the other is Region. I have 11 different Sites and 3 Regions, and want to display my data such that Region is below Site, encompassing a few sites each.
I've tried facet wrapping…

Hunter Mackin
- 13
- 4
1
vote
1 answer
matplotlib: controlling position of y axis label with multiple twinx subplots
I wrote a Python script based on matplotlib that generates curves based on a common timeline. The number of curves sharing the same x axis in my plot can vary from 1 to 6 depending on user options.
Each of the data plotted use different y scales…

LMNCA
- 21
- 6
1
vote
1 answer
Need to get multiple y axis labels in rPlotly
I have a plot where every other column in the dataframe has a y axis label on left and right sides of y axis. I have the plot working if I don't use rplotly but now I want to do it in rplotly.
Below is the code I tried, the part before the plotly…

MLS
- 108
- 14
1
vote
1 answer
ggplot2: issues with dual y-axes and Loess smoothing
I'm a novice with R and ggplot. I recognize the power of R and elegance of ggplot and am trying to learn. Normally, I can find a solution online but have had no luck this time.
I am trying to generate a chart in ggplot comparing Economic Freedom…

Tyrone
- 143
- 1
- 4
1
vote
1 answer
using y-axis values to create secondary x-axis in ggplot2
I would like to create a dot plot with percentiles, which looks something like this-
Here is the ggplot2 code I used to create the dot plot. There are two things I'd like to change:
I can plot the percentile values on the y-axis but I want…

Indrajeet Patil
- 4,673
- 2
- 20
- 51
1
vote
1 answer
Populating matplotlib subplots with figures generated from function
I have found and adapted the following code snippets for generating diagnostic plots for linear regression. This is currently done using the following functions:
def residual_plot(some_values):
plot_lm_1 = plt.figure(1)
plot_lm_1 =…

Andreuccio
- 1,053
- 2
- 18
- 32
1
vote
1 answer
Drawing filled shapes between different axes in matplotlib
I would like to indicate a relationship between some of my data points in the main subplot and some other subplots using a filled triangular shape.
I found that Connection Patch allows you to draw lines/arrows between different axis, but no filled…

frase
- 13
- 4
1
vote
0 answers
Creating a candlestick chart with multiple axes (not twin axis )
I have created a candlestick chart that displays the percentage deviation from the moving average, with the percentage as the left side Y-Axis parameter. I want to plot the closing price that corresponds to those percentages( derived by a formula…

zcdp
- 79
- 10
1
vote
0 answers
Matlab GUI, draw arrow with annotation to specific axes
I´d like to draw an arrow with annotation in a specific axes in my GUI.
At the moment I have this GUI with two axes:
I already can draw an arrow to axes2 in my GUI but not to a chosen one.
My Code so far:
How do I fit the annotation for example…

Paul
- 33
- 5
1
vote
1 answer
Bokeh Server with 3 y axes doesn't plot,but does for 2 y axes.Why?
My objective is to plot live data on multiple y axes(different ranges). The following code worked with 2 y axes but when I added a 3rd one, the browser was just blank.An earlier basic bokeh plot with 4 y axes worked fine but this server version is…

revoltman
- 101
- 3
- 12