I've created the following plot with hvplot and want to rotate the xlabels in this plot:
import numpy as np
import pandas as pd
import hvplot.pandas
import holoviews as hv
my_plot = pd.DataFrame(np.random.normal(size=[50, 2])).hvplot()
This can be done in 2 ways:
1) By adding it as argument of .hvplot(rot=90)
my_plot = pd.DataFrame(np.random.normal(size=[50, 2])).hvplot(rot=90)
2) By using .opts(xrotation=90), if you would like to rotate the labels by 90 degrees.
For y labels you can use option yrotation=90.
my_plot = pd.DataFrame(np.random.normal(size=[50, 2])).hvplot()
my_plot.opts(xrotation=90)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With