Newton_trident.svg
Size of this PNG preview of this SVG file:
360 × 270 pixels
.
Other resolutions:
320 × 240 pixels
|
640 × 480 pixels
|
1,024 × 768 pixels
|
1,280 × 960 pixels
|
2,560 × 1,920 pixels
.
Summary
Description Newton trident.svg | |
Date | |
Source | Own work |
Author | Nicoguaro |
SVG development
InfoField
|
This plot was created with
Matplotlib
.
|
Source code
InfoField
|
Python code# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
red = "#e41a1c"
gray = "#666666"
plt.rcParams["mathtext.fontset"] = "cm"
plt.rcParams["axes.spines.top"] = False
plt.rcParams["axes.spines.right"] = False
plt.rcParams["axes.edgecolor"] = gray
plt.rcParams["xtick.ecolor"] = gray
plt.rcParams["ytick.edgecolor"] = gray
a, b, c, d = 1, 1, 1, 1
y, x, = np.mgrid[-10:10:101j, -4:4:101j]
z = x*y + a*x**3 + b*x**2 + c*x - d
fig, ax = plt.subplots(figsize=(4, 3))
plt.contour(x, y, z, [0], colors=red)
plt.xlabel(r"$x$", fontsize=16)
plt.ylabel(r"$y$", rotation="horizontal", fontsize=16)
ax.spines['bottom'].set_position(('data', 0))
ax.spines['left'].set_position(('data', 0))
plt.xticks([-4, -2, 2, 4])
plt.yticks([-10, -5, 5, 10])
ax.xaxis.set_label_coords(1.0, 0.6)
ax.yaxis.set_label_coords(0.55, 0.95)
plt.grid(alpha=0.2)
plt.savefig("newton_trident.svg")
plt.show()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the
Creative Commons
Attribution 4.0 International
license.
-
You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
-
Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.