For plotting questions related to adjusting the y-axis.
Questions tagged [yaxis]
528 questions
-1
votes
1 answer
y-ticks in log format are being labels when they shouldn't be
I want to plot two lines with matplotlib / seaborn and a logarithmic y-scale.
pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
data1=pd.Series([0.5, 1.6])
data2=pd.Series([0.5, 1.1…

Tokeru
- 29
- 5
-1
votes
1 answer
Chart.js Line Chart Stacked: Repeat left Y-Axis on the right
I want to have the same y axis from the left also on the right of the chart with exactly the same scale. I am using a stacked line chart and i create multiple axis. The result i get is, that the right y-axis has a different scale (0 - 1) than the…

Strubbl
- 709
- 4
- 15
- 31
-1
votes
1 answer
Get value of mouse Y axis (JavaScript)
I am making a game in JavaScript and I would like to define a variable as the Mouse Y axis. Please don't make the code un-necessarily complex if you can help it.
That's all

Ben
- 31
- 6
-1
votes
1 answer
Large values in ticks
I am making subplots in Python of 6 images and the y axis values are very high (range from 0 to 250 000). I want to show them in multiples of 1000, but not that they show up as 1K,10K,250K etc., but as 1,10,250 and at the top there would be 1e3 to…

Monika Gelaziute
- 1
- 1
-1
votes
1 answer
Python, plotly extrapolate graph to get Y-axis Intercept
Is it possible to extrapolate my plotly graph to get the Y-axis intercept?
Here is my code, i used Plotly express but can also use other types:
import pandas as pd
import numpy as np
import plotly.express as px
a = np.array([[0.5,1,2,3,5,7],…

DarkHackerxXx
- 51
- 5
-1
votes
1 answer
ggplot with two y-axis in R?
I have asked this question earlier but someone close it indicating that it has answer. I am pretty confuse how i can get the two variables plotted on two Y-axis. I want to plot Level on the left y-axis and Flow on the right y-axis (ie., secondary…

Hydro
- 1,057
- 12
- 25
-1
votes
1 answer
How to show the legend for dual y-axis from 2 dataframe with different length?
I need help with showing the legend for the data I plotted on both axis - two data frames with common x-axis as date, I used scaling to plot them together. However, the show.legend = true, none of them are showing on the plot.
It would be greatly…

Eileenleen
- 21
- 2
-1
votes
1 answer
D3 chart - How can I put the X-axis below the Y-axis?
I want my X-axis to be at the bottom of the graph but when why data is set to zero then it comes to the center of Y-axis? How do I prevent it from going to the center??
let x = d3.scaleBand().rangeRound([0, width]).padding(1),
y =…

Anand Awasthi
- 3
- 3
-1
votes
1 answer
Multi-axis line chart with Chart.js
The following code I tried to display two y-axis on the line chart and I added yAxisID in both the data source. However, it is nothing to shown. May I know what's wrong with my code? Thank you.
function BuildChart(labels, valuesa, valuesb,…

Dennis
- 67
- 1
- 9
-1
votes
3 answers
R ggplot2 y-axis scale
I tried to change y-axis scale range.
I used the code to set the y scale:
coord_cartesian(ylim = c(min(value) - 0.05, max(value) + 0.05))
where value is a numeric column.
I want the y-axis showing from the minimum of value minus 0.05 to maximum…

Peter Chen
- 1,464
- 3
- 21
- 48
-1
votes
1 answer
How to change sjp.int y-axis label
How do you change the y-axis label using sjp.int? I see axis.title for changing the x-axis but nothing for changing the y-axis.

Sarah J.
- 1
- 1
- 2
-1
votes
1 answer
Fitting Axis and of Y and X in Excel
I have the following Graph: The Y values are located at X= 32,64,128,256, 512 and 1024. However, the graph shows different values. I would like to show for X-axis labels only the relevant values (i.e.32,64,128,256, 512 and 1024).
In addition, I…

Avi
- 2,247
- 4
- 30
- 52
-1
votes
1 answer
Abline clip for secondary axis
With the ablineclip I can draw a straight line to any plot like:
ablineclip(h = 2, x1 = 0,x2 = 5,lty = 2, col = "green")
this draws a horizontal line where y=2 from x=0 to x=5.
How can I draw a line for a second y axis??
(meaning a horizontal…

geo_dd
- 283
- 1
- 5
- 22
-1
votes
1 answer
Can Matlab plot first dot not fall on y-axis?
I want to plot using Matlab. There are several dots and they will be connected by line.
I want my very first dot away from Y-axis instead of falling on y-axis so it will be more clear for me. What do I need to add? Or what's the key word can help me…

Ying
- 1,894
- 1
- 14
- 20
-2
votes
1 answer
How to remove the title from yellowbrick ROCAUC
I am using yellowbrick to plot the AUCROC. I want to remove the title from the plot, to make it empty without the plot title.
model = classifier
visualizer = ROCAUC(model, encoder={0: 'class' , 1: 'class2'}
visualizer.fit(X_train, y_train) …

user
- 5
- 3