Questions tagged [yticks]

For questions related to yticks in matplotlib, seaborn, or pandas plots.

30 questions
0
votes
1 answer

How to use set_yticks with ax.loglog

Using matplotlib, I want to eliminate the yticks and ytick labels from a loglog plot. It works for a regular plot, but not for loglog. The following code from matplotlib import pyplot as plt fig, ax =…
0
votes
0 answers

Fix ticks distances in an sns heatmap - differing number of trials on y axis

I'm plotting a 2d heatmap across 3 different conditions (so 3 separate plots), dimensions trials x time. X axis is fixed size across conditions. However each condition has a different number of trials (different number of ticks on the y axis). By…
Joan
  • 31
  • 6
0
votes
2 answers

Set tick mark distance within for loop for ggplot2

Problem I have a for loop that produces a set of graphs that are all the same but for different locations. I want to be able to control the tick marks so that the the distance between each tick mark is the same for each plot. I don't want hard set…
Melanie Baker
  • 449
  • 1
  • 13
0
votes
1 answer

imshow with twinx that is also aligned with tiles

There is a thread where the question was to add an automatically labelled twinx to Matplotlib's imshow. The result was: However, I would like the ticks on the second y-axis to be 1. manually settable and 2. aligned with the other ticks. Example…
Mew
  • 368
  • 1
  • 11
0
votes
0 answers

Change the axis ticks on Matplotlib.pyplot.imshow() to represent positions instead of pixels

I am trying to create a column density plot of a data set. The data includes the result of a 3D simulation with particles, that have been interpolated on a grid. When I plot with imshow() I get ticks on the x and y axis that represent the pixels…
0
votes
1 answer

Is there a way to set a lot (10000+) of minor ticks with matplotlib?

I'm trying to plot a signal that lasts 20-30min with 62 samples per second. For visual and research purposes I want the timestamps to scale and change just like the index values do with matplotlib but didn't find a solution to that. After ditching…
ETray
  • 1
  • 1
0
votes
2 answers

graph with matplotlib without interpolation of Y ticks

I need to build a graph from a group of files. My script below and output. import sys import matplotlib.pyplot as plt import matplotlib.image as img import pandas as pd import numpy as np import…
esse_emme
  • 13
  • 5
0
votes
1 answer

Ytick overlaps with Matplotlib figure space in violinplot

The violin plots I am making with Matplotlib have one of the plot intersecting with ytick label. See the picture below: The code I am using as follow: alp = 1 fig, axes = plt.subplots(nrows=10, ncols=1, figsize=(8, 6), dpi=100)#,…
banikr
  • 63
  • 1
  • 9
0
votes
1 answer

How to set axis ticks with non periodical increment in matplolib

I have a 2D array representing the efficiency of a process for a given set of parameters A and B. The parameter A along the columns changes periodically, starting from 0 to 225 with increment one. The problem is with the rows where the parameter was…
0
votes
0 answers

How can I change my yticks in matplotlib? I Want to be like "0, 5, 10..." (currently getting a "0.5, 1.0..."

enter image description here import matplotlib.pyplot as plt cidades = [city for city, df in mv_cidade.groupby('Loja')] plt.bar(mv_cidade['Loja'], mv_cidade['Faturamento']) plt.ylabel('Faturamento em milhões') plt.xlabel('Loja (por…
0
votes
1 answer

How to modify (flip sign) secondary y-axis tick labels

Data (this block of code is good; feel free to skip): #Import statements import yfinance as yf import pandas as pd import matplotlib.pyplot as plt import matplotlib.ticker as mticker #Constants start_date = "2018-01-01" end_date =…
user603535
  • 55
  • 5
0
votes
1 answer

Matplotlib x-axis and secondary y-axis customization questions

Data - we import historical yields of the ten and thirty year Treasury and calculate the spread (difference) between the two (this block of code is good; feel free so skip): #Import statements import yfinance as yf import pandas as pd import…
user603535
  • 55
  • 5
0
votes
1 answer

Y-axis ticks in VS Code using Plotly

As my 32 bit Jupyter Notebook isn't reading large CSV file. I started working with VS Code. I have a problem with the graph in VS code. Output graph using VS Code: The Y-axis ticks should be the same as the output graph in Jupyter Notebook. The…
Pavan
  • 1
  • 3
0
votes
1 answer

highcharts - Align y-Axis labels to the right and make chart width "smaller"

I have a chart with two y-Axis. One to the left of the chart another one to the right. The labels on the right y-Axis appear inside the chart. When I align the labels to the right the labels still overlap the y-Axis in some cases. When I add a…
smaica
  • 723
  • 2
  • 11
  • 26
0
votes
1 answer

Matplotlib tick formatter for large numbers

When I run this import numpy as np import matplotlib.pyplot as plt plt.plot(np.arange(1e6, 3 * 1e7, 1e6)) I get this plot plot_before, where the y-axis is a bit weird (there is a 1e7 on the top). So, I am trying to fix this. I came up with a…
Arto
  • 1
  • 1
1
2