File:Hyperbola2 SVG.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 512 × 512 pixels, file size: 2 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionHyperbola2 SVG.svg |
English: SVG version of hyperbola x^2-y^2=4. |
| Date | |
| Source | Own work |
| Author | IkamusumeFan |
| SVG development InfoField |
Source code
Python (Matplotlib) # Author: Ika, 2013-07-27 import numpy as np import matplotlib.pyplot as plt import scipy.special as sp import random plt.figure() plt.axes([0.17,0.13,0.79,0.8]) plt.hold(True) Q = [] # Draw the hyperbola. # Quadrant I X = np.arange(2.00, 10.01, 0.01) Y = np.sqrt(X*X-4) a = plt.plot(X, Y, '-', color='red', lw=2) Q.append(a) # Quadrant II X = np.arange(-10.00, -1.99, 0.01) Y = np.sqrt(X*X-4) a = plt.plot(X, Y, '-', color='red', lw=2) Q.append(a) # Quadrant III X = np.arange(-10.00, -1.99, 0.01) Y = -np.sqrt(X*X-4) a = plt.plot(X, Y, '-', color='red', lw=2) Q.append(a) # Quadrant IV X = np.arange(2.00, 10.01, 0.01) Y = -np.sqrt(X*X-4) a = plt.plot(X, Y, '-', color='red', lw=2) Q.append(a) plt.xlim(-10,10) plt.ylim(-10,10) # Set up the spines ax = plt.gca() ax.spines['right'].set_color('none') ax.spines['top'].set_color('none') ax.xaxis.set_ticks_position('bottom') ax.spines['bottom'].set_position(('data',0)) ax.yaxis.set_ticks_position('left') ax.spines['left'].set_position(('data',0)) # Set label ax.text(1,8,r'$x^2-y^2=4$',fontsize=24) plt.savefig("Hyperbola2_SVG.svg")
Gnuplot # Author: Ika, 2013-07-29 set term svg size 800,600 enhanced font 'Times,12' set output 'Hyperbola2_SVG.svg' set isosamples 10000,10000 set samples 10000,10000 set xzeroaxis set yzeroaxis set xlabel "x" set ylabel "y" unset key set xrange [-10.0:10.0] set yrange [-10.0:10.0] # Draw the function curve plot sqrt(x*x-4) plot -sqrt(x*x-4) set term x11 set output
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
some value
28 July 2013
1,884 byte
image/svg+xml
3d3f477e68e5897ba40510f040ac9d28e7c2c053
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 16:28, 23 May 2014 | 512 × 512 (2 KB) | wikimediacommons>Krishnavedala | hand-drawn SVG |
File usage
There are no pages that use this file.
Retrieved from "https://en.wiki.beta.math.wmcloud.org/wiki/File:Hyperbola2_SVG.svg"