Questions tagged [yaxis]

For plotting questions related to adjusting the y-axis.

528 questions
3
votes
2 answers

How to rotate Seaborn heatmap in python?

default settings of seaborn.heatmap gives the x-axis starts from the origin of 0 then increases towards the right the y-axis starts from an origin of 9 then increases towards the upward This is odd compared to matplotlib.pyplot.pcolormesh, which…
develarist
  • 1,224
  • 1
  • 13
  • 34
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…
user7828298
  • 95
  • 2
  • 7
3
votes
2 answers

Force y axis to start at 0, insert "break", AND have a large y axis using ggplot2

I am still working on finalizing a reproducible figure for publication. Reviewers would like to see the below plot's y-axis start at 0 and include line break "//". The y-axis will need to not only be pretty large (think, 1500 units) but also…
Millionhorns
  • 55
  • 1
  • 6
3
votes
1 answer

Is it possible to zoom vertical axis on Flutter Charts?

I am trying to familiarize with charts in Flutter, using github.com/google/charts package. I want to make a chart (bar, line, scatter or any other.. this, for example) where I can zoom and pan not only the x-axis, but also the vertical y-axis…
Karlooie
  • 163
  • 1
  • 7
3
votes
1 answer

ggplot yaxis with arrow

Is there anyone who knows how to change the y-axis horizontally and add the arrow? I want to make graph like this. This is the code that I used for making this graph. ggplot(plot, aes(x=Worried.about.the.problems.caused.by.the.garbage., y=mean)) +…
Sehee Yang
  • 41
  • 2
  • 4
3
votes
0 answers

Set log plot limits to next lowest/highest decade

I've got a function that creates a log-log plot using Matplotlib. import matplotlib.pyplot as plt plt.loglog(xdata, ydata, label="function label...") # ...more plots plt.set_xlabel("Frequency (Hz)") plt.show() I'd like to have Matplotlib plot one…
Sean
  • 1,346
  • 13
  • 24
3
votes
1 answer

Number of Active Sessions in Tomcat

I have my web services jar file deployed under webapps\nyx\WEB-INF\services in my tomcat server. Now I am trying to get no of active sessions using below code inside a web service method. MBeanServer mBeanServer =…
Shelly
  • 410
  • 7
  • 26
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
  • 1
  • 11
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
  • 927
  • 1
  • 10
  • 21
3
votes
1 answer

How to extract y axis labels from boxplot in R?

How to extract the y-axis labels from the boxplot in R? Example, bxp = boxplot(1:100) The y-axis labels are 0, 20, 40, 60, 80, 100. I wonder how to extract this programmingly?
WCMC
  • 1,602
  • 3
  • 20
  • 32
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
  • 205
  • 1
  • 6
3
votes
1 answer

plotting y-axis with a string attached to each value

I use the following code to plot a graph: fig = plt.figure() ax = fig.add_subplot(111) ax.plot(t_list,list1,linestyle='-') ax.plot(t_list,list2,linestyle='--') plt.show() The values that appear on the y-axis are values from list1 and list2. I am…
user123
  • 69
  • 2
  • 5
3
votes
2 answers

Rotating the y-axis label

I am trying to rotate the title of the Y axis so it is horizontal. I do not want the tick labels horizontal just the title of the Y axis. I have to use subplots as I am making multiple plots at once. Here is the below script in which I have tried…
jms1980
  • 1,017
  • 1
  • 21
  • 37
3
votes
2 answers

R barplot - how to add y axis '%' suffix?

pdf("whatever.pdf", height=4,width=8) B <- c(0,0.585,0.043,0.006,0.012,0.244,0.004,0.008,0.119,0.012,0.095) barplot(B, names.arg = c("ce","de","en","es","fr","it","ja","nl","ru","sv","All"), las=1, ylim=c(0, 0.6)) dev.off() The y-axis is in…
mwra
  • 317
  • 3
  • 11
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
  • 1,053
  • 2
  • 18
  • 32