File:Newton trident y=inf.svg

Original file(SVG file, nominally 360 × 270 pixels, file size: 15 KB)

Summary

Description
English: Trident curve for y = ∞ with a = b = c = d = 1.
Date
Source Own work
Author Nicoguaro
SVG development
InfoField
W3C grn 
The SVG code is valid.
Created with Matplotlib-logo 
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.color"] = gray
plt.rcParams["ytick.color"] = gray


a, b, c, d = 1, 1, 1, 1
y, x, = np.mgrid[-1:1:101j, -1:1:101j]
z = a*x**3 + b*x**2*y + c*x*y**2 + x*y - d*y**3

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([-1, -0.5, 0.5, 1])
plt.yticks([-1, -0.5, 0.5, 1])
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_y=inf.svg")
plt.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

12 April 2018

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:50, 12 April 2018Thumbnail for version as of 16:50, 12 April 2018360 × 270 (15 KB)NicoguaroUser created page with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata