Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Pycharm: Plot gets Coarse When Zoomed in

Using Pycharm and Matplotlib e.g. with:

import matplotlib.pyplot as plt
import numpy as np

my_random = np.random.random(5)
plt.plot(my_random)
plt.show()

gives easily a plot, that appears in Pycharm Professional Edition 2017.3 (Ubuntu 14.04) in the SciView window: default view

If I zoom in to the plot, it gets very coarse and I cannot analyse details anymore:

coarse in details

Is it possible to have this plot as a vector plot, so that details are maintained when zooming in?

Or can I plot in a more "native" (in the sense of closer to matplotlib, as this plot seems Pycharm specific) way, so that zooming is done in a vectorized and not bitmap way?


1 Answers

Currently zooming in with adaptive resolution is not supported.

Your best option is to use a different tool for that.

To cancel the sciview:
settings -> Tools -> python scientific -> untick "show plots in tool window"

view -> untick "scientific mode".

like image 155
Itamar beeri Avatar answered Feb 28 '26 09:02

Itamar beeri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!