Questions tagged [multiple-axes]
196 questions
0
votes
1 answer
How to align heights and widths subplot axes with gridspec and matplotlib?
I am trying to use matplotlib with gridspec to create a subplot such that the axes are arranged to look similar to the figure below; the figure was taken from this unrelated question.
My attempt at recreating this axes arrangement is below.…
user13276519
0
votes
1 answer
Plotting multiple lines from one dataframe and adding a secondary axis to plot a different dataframe - Pandas
I'm having issues with matplotlib. I want to make a scatterplot with two y-axes and the two axes should correspond to two different dataframes. But the problem I'm encountering is plotting multiple lines from one dataframe.
the first dataframe…

obscuredbyclouds
- 189
- 1
- 1
- 15
0
votes
1 answer
Is there a way to have 3 different Y axes on one graph using gnuplot?
I'm making a weather display graph using GNUplot with a weather API. I'm currently plotting the next 48 hours of temperature and rainfall.
As you can see in the above image, the temperature is the line with the axis defined on the left; while the…

Jim
- 2,243
- 2
- 13
- 17
0
votes
2 answers
label_outer() for twinx in many subplots
I am trying to plot many subplots with each subplot showing 2 y-data sets using secondary axis twinx. However, i only want to show yticks labels at outer locations. This is easily done with label_outer() for the original data, but i can't figure out…

Jamal
- 45
- 9
0
votes
1 answer
Visualization with common X-axis
Let's assume that I have the following dataset:
a b a_lag b_lag
10 30 0 0
12 25 1 0
20 55 2 0
16 37 1 1
24 60 2 1
19 50 2 2
I wish to plot both A an B…

Mr leconomiste
- 1
- 1
0
votes
2 answers
Problem with naming x-axis with ggplot2 in Rstudio
I'm trying to create some variation of a pareto-chart.
Moving along the code I face a problem I cannot solve on my own for several hours. It's regarding the data order of the package ggplot2 (1) and renaming the labels accordingly(2).
(1)Since I…

sven9r
- 1
- 1
- 1
0
votes
1 answer
ChartJS: How to center monthly bars against a daily line chart?
I'm trying to display total monthly sales and daily stock level. This way you could easily see that you didn't have any sales a particular month because you had low stock. Monthly sales is a bar chart that should be in the center of each month (in…

GianHodgson
- 35
- 1
- 6
0
votes
1 answer
R highcharter - Two barchart in same plot with different X-axis
I am trying to do the following:
I have a two datasets about my company. The first one has, say, the top 20 growing sellers. The second one has the bottom 20 losing sellers. So, it's something like this:
growing_seller <-…

Lorenzo
- 17
- 4
0
votes
1 answer
Gnuplot xtic label alignment adjustments
I am trying to make a multiplot graph for the following data:
col, col1 , col2, col3
20, 4.9, 17.1, 78.1
25, 4.0, 22.0, 74.0
30, 2.0, 17.0, 81.0
35, 11.5, 21.7, 66.8
40, 4.7, 18.0, 77.4
45, 3.8, 8.9, 87.3
50, …

Active Hub
- 51
- 3
0
votes
1 answer
modify the plotly multiple axes to dynamic multiple axes javascript
Here is the code
var trace1 = {
x: [1, 2, 3],
y: [40, 50, 60],
name: 'yaxis data',
type: 'scatter'
};
var trace2 = {
x: [2, 3, 4],
y: [4, 5, 6],
name: 'yaxis2 data',
yaxis: 'y2',
type: 'scatter'
};
var data = [trace1,…

Jaffer Wilson
- 7,029
- 10
- 62
- 139
0
votes
1 answer
Highchart - ThingSpeak - IoT - issues with graphs (axes)
I use Highcharts for my ThingSpeak IoT project.
All is fine except these things, which just makes me angry (I cannot find a solution on my own... I have been trying with my frind Google for last 3 days without any success).
Here is my project page:…

Eldenroot
- 37
- 9
0
votes
0 answers
Common X and Y axis lable for all subplots in the case of sns.lineplot and axhline?
I am trying to specify a common X and Y axis label that spans 4 subplots (1 col), but get the error: "'numpy.ndarray' object has no attribute 'set_ylabel'"
This code works without an issue when I am just creating a single graph/axis. Code is pasted…
0
votes
1 answer
Mathematical definition of tensordot operation on TensorFlow tensor
I'm trying to reverse engineer the behavior of tf.tensordot axes parameter, but having a hard time.
Given the following code:
a = tf.constant([[1., 2.], [3., 4.], [4., 5.]])
b = tf.constant([1., 2.])
c = tf.constant([[1., 2.], [2., 3.], [3.,…

Romeo Kienzler
- 3,373
- 3
- 36
- 58
0
votes
1 answer
Matplotlib: Simplest possible example for 2 x 1 - grid of plots fails with "cannot create weak reference to bool"
I'm trying to do the simplest possible 1-row, 2-column multi-ax-plot with matplotlib, actually taken from the examples in the documentation:
from matplotlib import pyplot as plt
fig, (ax1, ax2) = plt.subplot(nrows=1, ncols=2, sharey=True)
…

Lukas Barth
- 2,734
- 18
- 43
0
votes
1 answer
matplotlib, place a transparent subplot on top of another subplot
My goal is to have a plot with a transparent background exactly on top of another plot, but with the y-axis on the other side. However, I do not know how to get the size right.
This code
plt.figure(1, figsize=(9, 3))
plt.subplot(1,1,1) …

Christian
- 1,308
- 3
- 14
- 24