I need help with a plot in python. I used the example dataset mpg.
import pandas as pd
import numpy as np
from plotnine import *
from plotnine.data import *
import matplotlib.pyplot as plt
%matplotlib inline
mpg.head()
mpg = mpg.loc[(mpg.manufacturer=="audi") | (mpg.manufacturer=="jeep") ]
p = ggplot(aes(x='displ', y='manufacturer'), mpg)
I obtain this plot:
But I would like the shapes are free in y axis (because I have elements with overlapping), for example something like this:
Thanks a lot!