0

Is there a possibility of increasing the size of the plot plotted using z.showplot() in qubole notebooks.

import matplotlib as plt
plt.figure()
plt.bar(pandas_df_hr_sg[:]['hour'],pandas_df_hr_sg[:]['count'])
plt.title('Hourly wise user visits')
plt.xlabel('Hour')
plt.ylabel('Visit Count')
z.showplot(plt)
3
  • Try to add plt.rcParams['figure.dpi'] = 150 before showplot.
    – Kolibril
    Dec 14, 2019 at 13:26
  • And in case you are using a jupyter notebook, the rcParams statement should not be in the same cell as the import matplotlib.pyplot as plt
    – Kolibril
    Dec 14, 2019 at 13:28
  • Thanks for that Kolibril.But this does not seem to work in Qubole notebooks. Dec 14, 2019 at 18:24

1 Answer 1

0

Could you try setting the plot size by:

plt.figure(figsize=(8, 8))

This should ideally help in case of Zeppelin notebook in Qubole; let me know how this goes!

1

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.