Questions tagged [multiple-axes]

196 questions
3
votes
1 answer

How to change the font size for multiple axes labels (created with host_subplot API)

I looked on the internet and absolutely all the examples with multiple axes have the xlabel and ylabel at a default value and quite small I used the following code to create the axes: from mpl_toolkits.axes_grid1 import host_subplot import…
Bogdan
  • 593
  • 7
  • 14
3
votes
1 answer

How can I force a dual y axis graph to use the same baseline for each axis?

I have a Google Combination Chart where I am using two y axes. At present, the baselines for each axis are at a different level. I wish to ensure that the baselines for each axis are at the same level. The code I am currently using to display my…
3
votes
1 answer

Highcharts - Multiple Y Axis Stacked Charts

I am creating a chart with two Y axes - distance and duration. Each Y axis will have multiple series ( run, bike, swim, etc.) stacked on top of one another. Duration is a stacked area or areaspline and distance is a stacked column chart. Here is…
Bryan
  • 17,201
  • 24
  • 97
  • 123
2
votes
1 answer

Proper position for my colorbar in an AxesGrid collocation

The figure above was produced by import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import AxesGrid mat = [[1,2],[3,4]] fig = plt.figure() grid = AxesGrid(fig, 111, nrows_ncols=(1,3), axes_pad=0.2, share_all=False,…
gboffi
  • 22,939
  • 8
  • 54
  • 85
2
votes
1 answer

ggplot: scale second axis with error bars

I am attempting to graph two scatter plots with associated error bars using ggplot2. I would like the top of left axis to be ~0 and range down to -2000 and for the bottom of the right axis to be 0 and range up to about 0.15. I can re-scale the axes…
JRR
  • 578
  • 5
  • 21
2
votes
1 answer

Plot with 3 different x axis and the same y axis in matplotlib?

I've been trying to plot a figure that has 3 different x axis but the y axis is the same and it's the same, contiguous curve. The first part of the x axis goes up to a point (in the figure, that's zero). The second part of the axis is on a different…
2
votes
2 answers

When using external axes method to plot multiple candlestick charts using mplfinance library, how to plot volume inside the candlestick chart?

The project I am doing requires code to plot more than 300 candlestick charts in several figures using mplfinance library. I am aware that this can only be done using external axes method as it provides more flexibilities and can plot unlimited…
2
votes
0 answers

twinx non-linear mapping between shared y axes on a plot in matplotlib

I have some 3d data that I am plotting with pcolormesh. On the x-axis is time, on the y-axis is height. The height has a potential (E) associated with it, but the mapping from height (y) to potential (E) is non-linear. I want to add an axis on the…
FluidFox
  • 107
  • 10
2
votes
0 answers

How to make the zeros coincide in a PyQtGraph?

I have 3 axes (left, bottom, right) and I can't find a way for the zeros to all be on the bottom left (see figure) please advise? Here's part of my code: grid = QtWidgets.QGridLayout(self.Envtab) grid.setSpacing(10) plotWidget =…
Alexis R Devitre
  • 288
  • 2
  • 6
  • 21
2
votes
0 answers

How to plot second y-Axis in visdom line plot Python?

Here is the client code for Visdom: import visdom import numpy as np import json from win32api import GetSystemMetrics import time # viz = visdom.Visdom() viz = None def Init_Visualization(): global viz try: viz = visdom.Visdom() …
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
2
votes
0 answers

Matplotlib secondary_xaxis can't be formatted

I'm trying to get an "inverse" second x-axis to a x-axis in log-scale. secondary_xaxis works fine but I can't format the ticks as usually. Is this a bug or am I missing something? Here's what I do: import matplotlib.pyplot as plt import numpy as…
2
votes
1 answer

Prevent grid lines from twin axis to be drawn on top of artists from original axis

I have an axis on which I plot some data and I have another twin axis which I use to draw grid lines at specific tick positions (other than the ticks of the original axis): import matplotlib.pyplot as plt import numpy as np f, ax =…
a_guest
  • 34,165
  • 12
  • 64
  • 118
2
votes
0 answers

Python - Plotly - dynamic y-axis selection on a multiple axes plot

I have a dataframe of multiple columns, each containing a time series. I want to compare two time series plots at a time, for which I am plotting them overlayed with two y-axes as given in the example here:…
Ira
  • 107
  • 8
2
votes
3 answers

Matplotlib: different scale on negative side of the axis

Background I am trying to show three variables on a single plot. I have connected the three points using lines of different colours based on some other variables. This is shown here Problem What I want to do is to have a different scale on the…
Neeraj Hanumante
  • 1,575
  • 2
  • 18
  • 37
2
votes
1 answer

Matplotlib zorder axe hide other axe's lines

I have 3 axes with one or more lines. Due to get the picker of the line where my cursor is I tried to change the zorder of the axe which contain the line. Precision : I am in a FigureCanvasQTAgg derived objet def onmove(self, event): """Methode…
reynum
  • 125
  • 1
  • 1
  • 7
1 2
3
13 14