Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Dataframe.hist() labels overlapping graphs
Good day,

I have a csv file that has a header row. When I put it into a dataframe and run the .hist() I get a the labels for the individual graphs overlapping all the graphs. Is there anyway to label the graphs in a neater manner?

from pandas import read_csv
from matplotlib import pyplot
# define the dataset location
filename = 'Nickel.csv'
# load the csv file as a dataframe
dataframe = read_csv(filename, header=0)
# create a histogram plot of each variable 
please supply a sample of Nickel.csv (if large just a samll part please)
so code can be run
Hey Larz, thanks for getting back. So I had a dataset with 10 columns of data and the subplots of histograms had all sort of overlapping of titles with the graphs when using jupyter.

Ended up fixing it with the tight_layout method.


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Rename labels of a bar chart Matplotlib smalatray 1 239 Jul-01-2020, 01:48 AM
Last Post: hussainmujtaba
  Add tick labels in healpy.mollview ? BourbonKid67 4 1,324 Apr-10-2019, 10:19 AM
Last Post: BourbonKid67
  plotting of graphs mudezda1 2 789 Feb-11-2019, 12:44 PM
Last Post: mudezda1
  How to prevent tick labels overlapping with axis SriRajesh 2 14,907 May-12-2018, 06:13 PM
Last Post: SriRajesh
  Tuple Unpacking with graphs in matplotlib smw10c 2 2,945 Mar-23-2017, 05:13 PM
Last Post: smw10c

Forum Jump:

Users browsing this thread: 1 Guest(s)