Questions tagged [multiple-axes]
196 questions
1
vote
1 answer
Heatmap plots extra axes
I'm using the heatmap function in Matlab to plot some maps, the maps themselves are fine but the program seems to be adding extra borders and axes onto the figures, no idea why this is happening!
My code is:
figure(1)
hFig =…

KRS-fun
- 696
- 3
- 9
- 20
1
vote
0 answers
Plotyy right y-axis and associated data shifting upwards when enlarging the figure
I used code similar to the plotyy function to plot two y variables. However, the righthand side of the graph containing the second y-axis shifts/moves when I alter the size of the figure. This also results in an upward shift in the y variable from…

user3052817
- 245
- 3
- 9
1
vote
2 answers
Disabling auto-matching of two or more lines by their max values
I am using amchart (not stock chart) to generate charts of two or more datasets. I noticed that lines with different values are being adjusted by their max values. Please have a look at the attached screenshot:
As you can see for example the amount…

Riddick
- 55
- 7
1
vote
0 answers
Flot: Adjusting y-axis scale on a multiple Y-axes chart
I am creating a multiple Y axes chart in flot with autorange option.
My issue is that sometimes after the graph is plotted, i need to adjust the scale of some Y axis, and i'd like to do this by clicking the selected axis and scrolling the mouse or…
1
vote
1 answer
Matplotlib: twin axes and set_equal
I'm wondering if there is a more elegant way (by removing any for loop, or by using another way to plot the grid), to achieve this figure:
nx, ny = 8, 6
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_xlabel('Pixel…

pch
- 359
- 3
- 11
1
vote
1 answer
MATLAB GUI: How do I use pushbuttons to increment a variable in the opening function? (cursor movement)
I am creating a game in MATLAB using guide for a school project and am hitting a road block implementing pushbuttons. I know the solution is simple but I am not getting it...
Here is the premise of the game (It is based on the GBA game "Advance…

user2329916
- 11
- 1
0
votes
1 answer
Iterate Using .bxp() to Match Colors of other Axes
Here is my problem:
I want the colors of the boxplots to match the histogram colors.
In previous paired plots I iterate over datasets and when in the same loop Matplotlib handles colors for me. ax.bxp() (documentation) works differently than other…

Programming_Learner_DK
- 1,509
- 4
- 23
- 49
0
votes
1 answer
How do I create and label subcategories within a category using ReactEcharts?
ReactEcharts.
How to create and label subcategories within a category like in the screenshot.
entrance 1-5 - data sources.
entered and exit - source metrics.
Example data:
[
{
name: 'entered',
value: 40,
time: 09:00,
source: 'entrance 1'
},
{
name:…

Николай Петров
- 11
- 2
0
votes
1 answer
Plot multiple y-axis and colors but a single x-axis
I'm trying to plot 4 types of data on a single graph using plotly.
they all share the x-axis but one of them has a different y-axis to it,
I want to plot the first few categories which share the x and y axis with different colors by category
and a…

Tomer Gigi
- 33
- 4
0
votes
1 answer
creating axes with for loop subplot2grid
I have this code for displaying the first 10 columns of some pandas dataframe...
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
## DATAFRAME ##
np.random.seed(102030) # Se deben correr las 2…

grojar
- 1
- 2
0
votes
1 answer
Annotate plot with ordered pair of cartesian coordinates via Python and MatPlotLib library
Looking for a solution to properly annotate a subplot with an ordered pair of cartesian coordinates.
My figure is a bar graph of total product quantities with a line graph of the average price for the given products. For additional reference, please…

DerekJohn13
- 5
- 3
0
votes
0 answers
Gridspec shared axes in correct range
I have managed to create four subplots inside a subplot using gridspec, the outer layout is 2x2, and the inner layout is 4x1. Now, I am trying to create shared axes with ticks and values for these subplots. I want to have y axis for outer plot 1 and…
user20050294
0
votes
0 answers
Aligning colormap consistently with the plot
I am trying to align the matplotlib plot with its colorbar. However, when there is a tick on the top of the colormap, the figure itself shrinks a little bit:
Is there a way to equalize this distance (blue arrows) consistently?
For generating the…

oakca
- 1,408
- 1
- 18
- 40
0
votes
0 answers
multiple axis in a ggplot
So I have a dataset for which I'm planning to create several graph through a loop using the unique ID of each set, here you'll able to see the how the graph looks for an single individual.
library(ggplot2)
RID <- c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…

Andresito
- 11
- 2
0
votes
0 answers
How do I control which Excel chart axes pair I plot a data series to?
I have three data series (x-y) I want to plot as scatter graphs in Microsoft Excel.
I want the first series to be plotted using the bottom x-axis and left y-axis.
I want the second series to be plotted using the top x-axis and the left y-axis…