Questions tagged [multiple-axes]

196 questions
2
votes
0 answers

Depth buffer mode with several axes in Matlab

Is there a way to use the depth buffer while rendering a figure with two axes? Here's the example: The figure consists of two axes, which have symmetrically inverted moving waves (for simplicity red and blue). Obviously, these waves would intersect…
Eugene Kolesnikov
  • 643
  • 2
  • 6
  • 15
2
votes
2 answers

How to plot multiple graphs (faceting) using twoord.plot () in R?

I have data that looks like this: height <- c(1,2,3,4,2,4,6,8) weight <- c(12,13,14,15,22,23,24,25) person <- c("Jack","Jim","Jill","Tess","Jack","Jim","Jill","Tess") set <- c(1,1,1,1,2,2,2,2) dat <- data.frame(set,person,height,weight) I'm trying…
Share
  • 395
  • 7
  • 19
2
votes
3 answers

R multiple y axis interactive plot

I am trying to create a plot in R similar to this: with up to 6 variables and it has to be reactive. I tried plotly, however in plotly I would get axis ticks on the plot, and it gets messy, and I managed to get only one y axis out. Is there a way…
2
votes
2 answers

Passing axes as **kwarg in Python

I'm building a wrapper to generate plots in Matplotlib, and I want to be able to optionally specify the axes in which to build the plot. For example, I have: def plotContourf(thing, *argv, **kwargs): return plt.tricontourf(thing[0], thing[1],…
Reniel Calzada
  • 95
  • 1
  • 11
2
votes
2 answers

Matplotlib: add twin y axis without using its values in the plots

This is to clarify the question title. Say you have four lists of integers, with which you want to produce a scatter plot: a=[3,7,2,8,12,17] b=[9,4,11,7,6,3] c=[9,3,17,13,10,5] d=[5,1,1,14,5,8] You also have a function, for simplicity f(x)=1/x,…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
2
votes
1 answer

How do I selectively erase lines on a 2 y-axis subplot using matplotlib.(Python)

Here's the code that I'm using so far: class Main: app = QtGui.QApplication(sys.argv) QtCore.QObject.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()")) mainWidget = Gui.PointPredictorGui() …
Korbaine
  • 49
  • 4
2
votes
3 answers

Unable to control scale of second y-axis on df.plot()

I am trying to plot 3 series with 2 on the left y-axis and 1 on the right using secondary_y, but it’s not clear to me how to define the right y-axis scale as I did on the left with ylim=(). I have seen this post: Interact directly with axes … but…
MJS
  • 1,573
  • 3
  • 17
  • 26
2
votes
2 answers

Matplotlib: how to plot data from lists, adding two y-axes?

I need to produce some plots with matplotlib but I am very poor at it. I have five lists which contain 100 values each. Their values vary according to: I want to be able to produce two line-and-marker charts out of them: The first plot involves…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
2
votes
0 answers

How to add tickmarks to polar axes

Could you help me add tickmarks to each of the axes in my polar plot below? Here is an image of a polar plot with the tickmarks I want on the axes: http://blog.scottlogic.com/archive/2011/09/few.png This is an image of my current plot without…
JA2
  • 161
  • 3
  • 10
2
votes
1 answer

Matplotlib: Polar plot axis tick label location

How would you move the labels along each axis so they're all readable? For example, how would you move the '$156, $158, $160' out of the way of the axis? This post shows how you can move these labels if you only have one axis, but what would you do…
JA2
  • 161
  • 3
  • 10
2
votes
1 answer

How do I plot points with two different y-axis ranges on the same panel in the same X axis?

I am trying to create a scatterplot using ggplot that shares an X axis but has a Y axis with two different scales. The bottom of the Y axis has three scales from 0% to 0.1%, then 0.1% to 1%, and then finally regular intervals by 10%. An example…
mghaz
  • 25
  • 7
2
votes
1 answer

How to align a bar and a line chart in ggvis in a dual y-axes plot?

Using the following code: library(ggvis) library(dplyr) mydf2 <- iris %>% group_by(Species) %>% summarize(Sepal.Length = mean(Sepal.Length), Sepal.Width = mean(Sepal.Width)) mydf2 %>% as.data.frame() %>% ggvis(x = ~ Species, y…
LyzandeR
  • 37,047
  • 12
  • 77
  • 87
2
votes
0 answers

Matplotlib plot with 2 y axes, how do I specify which y axis event data is read from?

I have the following plots embedded in a wxpython panel with a single x axis and 2 y axes. #Draw graph on 2nd panel self.p2.figure = matplotlib.pyplot.figure() self.p2.axes = self.p2.figure.add_subplot(111) …
Damien
  • 33
  • 4
2
votes
0 answers

plot two graphs with different y-axis in ggplot

I'm trying to plot a scatterplot with errorbars together with a barplot. Both variables have a very different range (scatterplot 0 - 20000+; bar chart 0-1). So I want to create a plot with both graphs in it, with two different y-axes. This is what…
2
votes
1 answer

Highchart data series on wrong y-axis

I am struggling to solve this issue where I have a Highcharts graph with temperature and humidity. It has two y-axis, one for temperature and one for humidity. I have specified that humidity should go to the y-axis id 1, but it does not. It puts the…