MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/4nd3lc/scientific_python_cheat_sheet/d5ujakl/?context=3
r/Python • u/Link2mypast • Jun 09 '16
62 comments sorted by
View all comments
6
This is kind of silly, and there's no reason to prefer one way or the other, but does anyone else do from matplotlib import pyplot as plt rather than import matplotlib.pyplot as plt?
from matplotlib import pyplot as plt
import matplotlib.pyplot as plt
0 u/[deleted] Jun 10 '16 [deleted] 1 u/XtremeGoose f'I only use Py {sys.version[:3]}' Jul 28 '16 You know ipython has a %matplotlib inline now? %pylab is depreciated. 1 u/[deleted] Jul 28 '16 Yeah, but all my muscle memory is for pylab and not matplotlib or plt.
0
[deleted]
1 u/XtremeGoose f'I only use Py {sys.version[:3]}' Jul 28 '16 You know ipython has a %matplotlib inline now? %pylab is depreciated. 1 u/[deleted] Jul 28 '16 Yeah, but all my muscle memory is for pylab and not matplotlib or plt.
1
You know ipython has a %matplotlib inline now? %pylab is depreciated.
%matplotlib
%pylab
1 u/[deleted] Jul 28 '16 Yeah, but all my muscle memory is for pylab and not matplotlib or plt.
Yeah, but all my muscle memory is for pylab and not matplotlib or plt.
6
u/hharison Jun 10 '16
This is kind of silly, and there's no reason to prefer one way or the other, but does anyone else do
from matplotlib import pyplot as pltrather thanimport matplotlib.pyplot as plt?