File:ArclengthSegment.svg
Summary
Description |
English: A representative linear element of the function y=t 5, x = t 3.
Español: Un elemento lineal representativo para la función y=t 5, x = t 3. |
Date | |
Source | Own work |
Author | Nicoguaro |
SVG development | |
Source code | Python codefrom __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams['font.size'] = 16
t = np.linspace(-1.1, 1.1)
x = t**3
y = t**5
fig = plt.figure(figsize=(10, 10))
ax = fig.add_subplot(1, 1, 1)
plt.plot(x, y, 'r', lw=2, )
plt.plot([0.4, 1], [0.4**1.667, 1**1.667], 'k', lw=2)
plt.plot([0.4, 1], [0.4**1.667, 0.4**1.667], 'k', lw=2)
plt.plot([1, 1], [0.4**1.667, 1**1.667], 'k', lw=2)
plt.annotate(r'$d x$', xy=(0.7, 0.1))
plt.annotate(r'$d y$', xy=(1.05, 0.5))
plt.annotate(r'$d s$', xy=(0.5, 0.5))
ax.spines['left'].set_position('zero')
ax.spines['right'].set_color('none')
ax.spines['bottom'].set_position('zero')
ax.spines['top'].set_color('none')
ax.spines['left'].set_smart_bounds(True)
ax.spines['bottom'].set_smart_bounds(True)
plt.axis([-1.5, 1.5, -1.5, 1.5])
plt.xticks([-1, -0.5, 0.5, 1], [-1, -0.5, 0.5, 1])
plt.yticks([-1, -0.5, 0.5, 1], [-1, -0.5, 0.5, 1])
plt.savefig('ArclengthSegment.svg', bbox_inches='tight')
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.