File:Example of a locally constant function with sgn(x).svg

Original file (SVG file, nominally 731 × 551 pixels, file size: 24 KB)

Summary

Description
English: This diagram shows that the function is locally constant, i.e. for each argument there is a neighborhood where the function is constant.
Date
Source Own work
Author Stephan Kulla (User:Stephan Kulla)
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import matplotlib.pyplot as plt

from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset

b = 4

f, ax = plt.subplots()

ax.axhline(color="black")
ax.axvline(color="black")

ax.set_xlim(-b,b)
ax.set_ylim(-2,2)

ax.plot([-b,0],[-1,-1], color="blue")
ax.plot([0,b],[1,1], color="blue")
ax.plot([0.15],[1],".",color="green")
ax.plot([0,0],[1,-1], "o", color="white")

axins = zoomed_inset_axes(ax,10,loc=4)
axins.plot([0.05,0.25],[1,1], color="blue")
axins.plot([0.15],[1],"o",color="green")
axins.set_xlim(0.05,0.25)
axins.set_ylim(0.95,1.05)

mark_inset(ax, axins, loc1=3, loc2=1, fc="0.95", ec="0.7")

plt.xticks(visible=False)
plt.yticks(visible=False)

plt.savefig("Example of a local constant function with sgn(x).svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

23 April 2016

File history

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

Date/TimeThumbnailDimensionsUserComment
current13:26, 23 April 2016Thumbnail for version as of 13:26, 23 April 2016731 × 551 (24 KB)Stephan Kullabetter version
13:26, 23 April 2016Thumbnail for version as of 13:26, 23 April 2016731 × 551 (24 KB)Stephan KullaUser created page with UploadWizard

The following page uses this file:

Global file usage

Metadata