0

I'm tryin to make a plot with pythons ggplot but the x and y aaxes are showing up in scientific notation

this is my code:

ggplot(dfMerge, aes(x='rent_price',y='sale_price', color='outlier',label='name')) +\
geom_text(hjust=0, vjust=0, size=20) +\
geom_point() +\
scale_y_continuous(labels="%.2f") +\
xlab("Rent Unit Price") +\
ylab("Sale Unit Price") +\
stat_smooth(color='blue') 

Here's the plot i get: enter image description here

How can i change the exponetial values on the axes to real numbers?

Thank you.

Marco Sandri
  • 23,289
  • 7
  • 54
  • 58
fosi
  • 53
  • 8
  • 1
    This is actually a matplotlib question. You want to set the `useoffset` attribute of the axes formatters to `False` https://stackoverflow.com/questions/11855363/how-to-remove-relative-shift-in-matplotlib-axis/11858063#11858063 – Paul H Sep 01 '17 at 21:05
  • Tried it but it doesnt change anything.I'm lost ass per what to do about it. Thanks anyway – fosi Sep 02 '17 at 12:38
  • you should update to question to show us what you've tried. – Paul H Sep 03 '17 at 22:32

0 Answers0