Questions tagged [yaxis]

360 questions
4
votes
1 answer

automatically adjust axis limits while plotting separate plots together

I would like to automatically adjust the ggplot graphs while plotting side-by-side. library(ggplot2) library(gridExtra) set.seed(123) freq <- sample(1:10, 7, replace = T) labels <- c('AUS', 'NZ', 'ENG', 'SOC', 'PAK', 'SRI', 'IND') value <-…
Prradep
  • 4,719
  • 3
  • 34
  • 66
4
votes
1 answer

How to add more Y-axes to MSChart with different scale at left or right side

I want to add 3 Y-axes for the chart with different scales. I want to get one x axis and different y axis. I did it like below code but I want to show one y axis like in the 2nd image that I attached.. My C# code so far: private void…
SNP
  • 51
  • 1
  • 10
3
votes
1 answer

center object on y axis that is connected to pan gesture

I want my swift code to center a frame connected to a uipangesture to the y axis. You can see what I am looking for in the gif I created below. Right now I have figure out a way to do this. I found you can do something similar to this using…
Sam Burns
  • 97
  • 1
  • 7
3
votes
1 answer

Plot one series with two y-axes in Plotly

I'm trying to plot one set of data with two different y-axes using Plotly. This seems like it should have an easy answer, but I've been unsuccessful so far... I'm analyzing some Strava data and have a plot of average speed vs. distance. I want…
3
votes
1 answer

ggplot of 2 ts-objects (time series) with 2 y axes (secondary y-axis)

I want to plot 2 ts-objects as bars and lines, respectively, using 2 y-axes. How can I do this in ggplot? I have 2 ts-objects: one is the value of a variable, the other is the annual change. The data are monthly. I would like to plot both ts-objects…
Isabel
  • 75
  • 5
3
votes
1 answer

Octave: Add secondary y axis to existing plot

I am using Octave 4.2.1 portable under Win 10. I have several plots in a single chart, with a single y axis, each one created with a plot(...) sentence. I want to add a plot in a secondary y axis to this existing plot, not creating from the…
3
votes
1 answer

How to shift bars from y-axis using barplot() R

I have a barplot with the following code: bp <- barplot(COL0.matrix, beside=T, col=col, ylim=c(0,100), yaxt="n", xlab="Time",ylab="Relative Electrolyte Leakage (%)", las=1,xaxt = "n", cex.axis=1.5, cex.names= 1.5, font=2,…
GW97
  • 91
  • 9
3
votes
1 answer

Increase Axis Thickness in Matplotlib (Without Cutting into Plot Domain!)

I am interested in a way to increase the thickness of the axes in matplotlib (without cutting into the domain of the plot). That is, I want the thickness of the axes to extend outwards from the plot, rather than inwards. Is such a thing…
grover
  • 667
  • 1
  • 8
  • 18
3
votes
1 answer

Matlab breaking yaxis multiple times

I'm trying to break yaxis multiple times by using breakyaxis. As seen in the comments of the link, other people also seem to have the issue of breaking the y-axis multiple times. For example: x = linspace(0,10,11); y1 = 0.01*x; y2 = -0.01*x + 5; y3…
Hosea
  • 177
  • 5
3
votes
2 answers

Y-break with scale change in R

I am still new to R. I agreed to help a friend replot his graphs however one of his plot designs is proving quite hard to reproduce. This is because he inserted a Y-axis break followed by a scale alteration on a barplot. This is illustrated by the…
Scientist
  • 457
  • 8
  • 22
3
votes
1 answer

Echarts3.0 display percent on y-axis in stacked bar chart

Using Echarts3.0 in Vuejs2.0 component, I am trying to assign percent on y-axis in a stacked bar chart. I tried boundaryGap, splitnumber, etc, but none of them worked. But i cannot achieve it, Anyone has idea how can i get % on y-axis? export…
WonderHeart
  • 608
  • 9
  • 26
3
votes
2 answers

ggplot2: How to end y-axis on a tick mark?

I am making several different plots with different axis ranges, so this question does not apply to only the code I am showing here. I tried modifying the breaks and intervals of tick marks, but for some plots the y-axis always continues after the…
Jon
  • 581
  • 2
  • 8
  • 16
3
votes
1 answer

highcharts y-axis title wrap

I have a chart with varying heights based on a parameter, due to which the y-axis title gets cut off at the top when height becomes less than the title length. The highchart api at http://api.highcharts.com/highcharts/yAxis.title specifies a style…
shweta
  • 89
  • 1
  • 10
3
votes
3 answers

Subplots with two y axes (each) - plotly and python/pandas

Are there guidelines on how to set up secondary Y-axes in python for plotly? I am assinging axis style through an iterative loop, as follows: all_plots = ['plot1','plot2'...'plot20'] fig = tools.make_subplots(rows=nrow, cols=ncol,…
Andreuccio
  • 923
  • 2
  • 15
  • 27
3
votes
0 answers

How to set the origin of y-axis in geom_bar (ylim does not work)

I am trying to control the range of the y-axis in a bar plot using ggplot. For this graph, I would like to the set the y-axis origin at 1, and not at 0 as ggplot2 does by default. For this example, lets assume I want to plot the median value for a…
FabF
  • 51
  • 4
1
2
3
23 24