-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
3,802 additions
and
2,549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0
data/extralines.png → data/line.png
100755 → 100644
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,7 @@ | ||
"""\nplotext plots directly on terminal""" | ||
|
||
__name__ = "plotext" | ||
__version__ = "5.1.0" | ||
|
||
from plotext._core import * | ||
from plotext._test import test | ||
|
||
|
||
def themes(): | ||
import plotext as plt | ||
from plotext._utility import themes | ||
from math import sqrt, ceil | ||
themes = list(themes.keys())[::] | ||
l = len(themes) | ||
rows = int(sqrt(l)) | ||
cols = ceil(l / rows) | ||
y1 = plt.sin(periods = 1) | ||
y2 = [-el for el in plt.sin(periods = 1)] | ||
plt.clf() | ||
plt.subplots(rows, cols) | ||
for row in range(1, rows + 1): | ||
for col in range(1, cols + 1): | ||
i = (row - 1) * cols + col - 1 | ||
if i < l: | ||
plt.subplot(row, col) | ||
plt.theme(themes[i]) | ||
plt.title(themes[i]) | ||
plt.scatter(y1); plt.scatter(y2) | ||
plt.show() | ||
plt.clf() | ||
|
||
def markers(): | ||
import plotext as plt | ||
from plotext._utility import marker_codes, hd_symbols | ||
from math import sqrt, ceil | ||
markers = list(hd_symbols.keys())[::-1] + list(marker_codes.keys()) | ||
l = len(markers) | ||
rows = int(sqrt(l)) | ||
cols = ceil(l / rows) | ||
y = plt.sin(1) | ||
plt.clf(); plt.theme('pro'); plt.xfrequency(0); plt.yfrequency(0); plt.frame(1) | ||
plt.subplots(rows, cols) | ||
plt.frame(0) | ||
for row in range(1, rows + 1): | ||
for col in range(1, cols + 1): | ||
i = (row - 1) * cols + col - 1 | ||
if i < l: | ||
plt.subplot(row, col) | ||
plt.frame(1) | ||
default = ' [default]' if markers[i] == 'hd' else '' | ||
plt.title(markers[i] + default) | ||
plt.scatter(y, marker = markers[i]) | ||
plt.ticks_style('bold') | ||
#plt.ticks_color(plt._utility.title_color) | ||
plt.show() | ||
plt.clf() | ||
__version__ = "5.2.2" | ||
|
||
from ._core import * | ||
from .plotext_cli import build_parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .plotext_cli import main | ||
main() |
Oops, something went wrong.