-
-
Save minrk/3301035 to your computer and use it in GitHub Desktop.
@fordhurley Wow, thanks :)
Is there a way to add this to a global config file somewhere?
@fordhurley awesome, thank you!
@ijoseph, add the following line to your ipython_kernel_config.py
, which for me is in ~/.ipython/profile_default/
c.InlineBackend.figure_format = 'retina'
If the file does not already exist, you can generate it with all settings commented out by entering ipython profile create
at the command line.
6 years later, this thread is still going strong 😄
+1
Great gist.
+1
@fordhurley thx
Still useful in 2020! 🎉
Hi,
Would anyone know how to disable this after activating it? I don't want to delete it. I want to use it for one case and stop using it for another. I'm on jupyter notebook. c.InlineBackend.figure_format = 'retina'
Many thanks
Parfait
import matplotlib.pyplot as plt
import numpy as np
import math
fig = plt.figure()
x = np.arange(0,0.3,0.0000001)
s=all(-0.5/x)
k=all(-0.125/x)
j= np.(1+math.exp(s))
m=np.(1+math.exp(k))
n=0.125np.log(j/m)
f=0.032np.log(j/m)
r=f/n
fig, ax = plt.subplots()
ax.plot(x,r, 'g')
ax.set_xlabel(' Temprature difference')
ax.set_ylabel('Objective function')
ax.set_title('Escaled power vs Temprature difference' )
ax.legend()
please help with this code
For anyone stumbling across this, as of PR #3381, you can now enable 2x images by just adding the line:
to your notebook.
Thanks!