How can I create a figure with optimal resolution for printing?
<p>I'm rather fond of <a href="https://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Logistic_Bifurcation_map_High_Resolution.png/800px-Logistic_Bifurcation_map_High_Resolution.png" rel="nofollow noreferrer">The Logistic Map' Period Doubling Bifurcation</a> and would like to print it on a canvas.</p>

<p>I can create the plot in python, but need some help preparing figure properties so that it has suitable resolution to be printed.  My code right ow produces some jagged lines.</p>

<p>Here is my code:</p>

<p>import numpy as np
import matplotlib.pyplot as plt</p>

<pre><code># overall image properties
width, height, dpi = 2560, 1440, 96
picture_background = 'white'
aspect_ratio = width / height


plt.close('all')
R = np.linspace(3.5,4,5001)

fig = plt.figure(figsize=(width / dpi, height / dpi), frameon=False)
ylim = -0.1,1.1
ax = plt.Axes(fig, [0, 0, 1, 1], xlim = (3.4,4))
ax.set_axis_off()
fig.add_axes(ax)

for r in R:

    x = np.zeros(5001)

    x[0] = 0.1

    for i in range(1,len(x)):

        x[i] = r*x[i-1]*(1-x[i-1])


    ax.plot(r*np.ones(2500),x[-2500:],marker = '.', markersize= 0.01,color = 'grey', linestyle = 'none')

plt.show()  
plt.savefig('figure.eps', dpi=dpi, bbox_inches=0, pad_inches=0, facecolor=picture_background)
</code></pre>

<p>Here is what the code produces:</p>

<p><a href="https://i.stack.imgur.com/kqm6B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqm6B.png" alt="enter image description here"></a></p>

<p>As you can see, some of the lines to the far left of the plot are rather jagged.</p>

<p>How can I create this figure so that the resolution is suitable to be printed on a variety of frame dimensions?</p>