plotext-plus 1.0.9__py3-none-any.whl → 1.0.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plotext_plus/__init__.py +20 -15
- plotext_plus/__main__.py +1 -0
- plotext_plus/_api.py +632 -371
- plotext_plus/_build.py +765 -149
- plotext_plus/_core.py +609 -164
- plotext_plus/_date.py +50 -32
- plotext_plus/_default.py +35 -28
- plotext_plus/_dict.py +807 -103
- plotext_plus/_doc.py +867 -296
- plotext_plus/_doc_utils.py +279 -245
- plotext_plus/_figure.py +1295 -303
- plotext_plus/_global.py +238 -140
- plotext_plus/_matrix.py +217 -63
- plotext_plus/_monitor.py +1036 -489
- plotext_plus/_output.py +29 -23
- plotext_plus/_shtab.py +2 -0
- plotext_plus/_themes.py +363 -247
- plotext_plus/_utility.py +581 -313
- plotext_plus/api.py +418 -332
- plotext_plus/charts.py +47 -24
- plotext_plus/core.py +570 -177
- plotext_plus/mcp_cli.py +15 -13
- plotext_plus/mcp_server.py +813 -332
- plotext_plus/plotext_cli.py +414 -275
- plotext_plus/plotting.py +86 -70
- plotext_plus/themes.py +10 -13
- plotext_plus/utilities.py +33 -33
- plotext_plus/utils.py +240 -140
- {plotext_plus-1.0.9.dist-info → plotext_plus-1.0.10.dist-info}/METADATA +7 -2
- plotext_plus-1.0.10.dist-info/RECORD +33 -0
- plotext_plus-1.0.9.dist-info/RECORD +0 -33
- {plotext_plus-1.0.9.dist-info → plotext_plus-1.0.10.dist-info}/WHEEL +0 -0
- {plotext_plus-1.0.9.dist-info → plotext_plus-1.0.10.dist-info}/entry_points.txt +0 -0
- {plotext_plus-1.0.9.dist-info → plotext_plus-1.0.10.dist-info}/licenses/LICENSE +0 -0
plotext_plus/plotting.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# /usr/bin/env python3
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
2
|
|
|
4
3
|
"""
|
|
5
4
|
Plotext Core Plotting Functions - Clean Public API
|
|
@@ -9,84 +8,101 @@ This module provides the main plotting functions that users interact with.
|
|
|
9
8
|
All the core plotting capabilities are exposed through clean, public interfaces.
|
|
10
9
|
"""
|
|
11
10
|
|
|
11
|
+
# Import core functions for media handling
|
|
12
12
|
# Import all main plotting functions from the internal core module
|
|
13
|
-
from ._core import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
from .
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
delete_file,
|
|
48
|
-
download as download_file,
|
|
49
|
-
)
|
|
13
|
+
from ._core import banner_mode # Interactive features
|
|
14
|
+
from ._core import bar
|
|
15
|
+
from ._core import build
|
|
16
|
+
from ._core import candlestick
|
|
17
|
+
from ._core import clc
|
|
18
|
+
from ._core import cld
|
|
19
|
+
from ._core import clear_color
|
|
20
|
+
from ._core import clear_data
|
|
21
|
+
from ._core import clear_figure
|
|
22
|
+
from ._core import clear_terminal
|
|
23
|
+
from ._core import clf
|
|
24
|
+
from ._core import clt
|
|
25
|
+
from ._core import colorize
|
|
26
|
+
from ._core import frame
|
|
27
|
+
from ._core import grid
|
|
28
|
+
from ._core import image_plot
|
|
29
|
+
from ._core import limitsize
|
|
30
|
+
from ._core import matrix_plot
|
|
31
|
+
from ._core import plot
|
|
32
|
+
from ._core import plotsize # Figure management
|
|
33
|
+
from ._core import save_fig # Data utilities
|
|
34
|
+
from ._core import scatter # Basic plotting functions
|
|
35
|
+
from ._core import show # Layout and display
|
|
36
|
+
from ._core import sleep
|
|
37
|
+
from ._core import subplot
|
|
38
|
+
from ._core import subplots
|
|
39
|
+
from ._core import theme # Colors and themes
|
|
40
|
+
from ._core import title # Plot customization
|
|
41
|
+
from ._core import xlabel
|
|
42
|
+
from ._core import xlim
|
|
43
|
+
from ._core import xscale
|
|
44
|
+
from ._core import ylabel
|
|
45
|
+
from ._core import ylim
|
|
46
|
+
from ._core import yscale
|
|
50
47
|
|
|
51
48
|
# Import global functions for media handling
|
|
52
|
-
from ._global import
|
|
53
|
-
|
|
54
|
-
play_gif,
|
|
55
|
-
)
|
|
49
|
+
from ._global import play_gif
|
|
50
|
+
from ._global import play_video
|
|
56
51
|
|
|
57
|
-
# Import
|
|
58
|
-
from .
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
# Import utilities that users might need
|
|
53
|
+
from ._utility import colorize as color_text
|
|
54
|
+
from ._utility import delete_file
|
|
55
|
+
from ._utility import download as download_file
|
|
56
|
+
from ._utility import terminal_height
|
|
57
|
+
from ._utility import terminal_width
|
|
61
58
|
|
|
62
59
|
__all__ = [
|
|
63
60
|
# Basic plotting
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
61
|
+
"scatter",
|
|
62
|
+
"plot",
|
|
63
|
+
"bar",
|
|
64
|
+
"matrix_plot",
|
|
65
|
+
"candlestick",
|
|
66
|
+
# Plot customization
|
|
67
|
+
"title",
|
|
68
|
+
"xlabel",
|
|
69
|
+
"ylabel",
|
|
70
|
+
"xlim",
|
|
71
|
+
"ylim",
|
|
72
|
+
"xscale",
|
|
73
|
+
"yscale",
|
|
74
|
+
"grid",
|
|
75
|
+
"frame",
|
|
73
76
|
# Colors and themes
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
"theme",
|
|
78
|
+
"colorize",
|
|
79
|
+
"color_text",
|
|
76
80
|
# Layout and display
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
"show",
|
|
82
|
+
"build",
|
|
83
|
+
"sleep",
|
|
84
|
+
"clear_figure",
|
|
85
|
+
"clear_data",
|
|
86
|
+
"clear_terminal",
|
|
87
|
+
"clear_color",
|
|
88
|
+
"clf",
|
|
89
|
+
"cld",
|
|
90
|
+
"clt",
|
|
91
|
+
"clc",
|
|
81
92
|
# Figure management
|
|
82
|
-
|
|
83
|
-
|
|
93
|
+
"plotsize",
|
|
94
|
+
"limitsize",
|
|
95
|
+
"subplots",
|
|
96
|
+
"subplot",
|
|
84
97
|
# Utilities
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
98
|
+
"save_fig",
|
|
99
|
+
"terminal_width",
|
|
100
|
+
"terminal_height",
|
|
101
|
+
"banner_mode",
|
|
89
102
|
# Media handling
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
103
|
+
"download_file",
|
|
104
|
+
"delete_file",
|
|
105
|
+
"image_plot",
|
|
106
|
+
"play_gif",
|
|
107
|
+
"play_video",
|
|
108
|
+
]
|
plotext_plus/themes.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# /usr/bin/env python3
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
2
|
|
|
4
3
|
"""
|
|
5
4
|
Plotext Themes - Clean Public API
|
|
@@ -10,20 +9,18 @@ Users can easily access, apply, and customize themes for their plots.
|
|
|
10
9
|
"""
|
|
11
10
|
|
|
12
11
|
# Import theme functionality from internal modules
|
|
13
|
-
from ._themes import (
|
|
14
|
-
get_theme_info,
|
|
15
|
-
apply_chuk_theme_to_chart,
|
|
16
|
-
get_chuk_theme_for_banner_mode,
|
|
17
|
-
create_chuk_term_themes,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
12
|
# Import theme application from core
|
|
21
13
|
from ._core import theme as apply_theme
|
|
14
|
+
from ._themes import apply_chuk_theme_to_chart
|
|
15
|
+
from ._themes import create_chuk_term_themes
|
|
16
|
+
from ._themes import get_chuk_theme_for_banner_mode
|
|
17
|
+
from ._themes import get_theme_info
|
|
22
18
|
|
|
23
19
|
__all__ = [
|
|
24
20
|
# Theme management
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
"get_theme_info",
|
|
22
|
+
"apply_theme",
|
|
23
|
+
"apply_chuk_theme_to_chart",
|
|
24
|
+
"get_chuk_theme_for_banner_mode",
|
|
25
|
+
"create_chuk_term_themes",
|
|
26
|
+
]
|
plotext_plus/utilities.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# /usr/bin/env python3
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
2
|
|
|
4
3
|
"""
|
|
5
4
|
Plotext Utilities - Clean Public API
|
|
@@ -9,44 +8,45 @@ This module provides utility functions for terminal operations, file handling,
|
|
|
9
8
|
and other helper functionality that users might need.
|
|
10
9
|
"""
|
|
11
10
|
|
|
12
|
-
# Import utility functions from internal modules
|
|
13
|
-
from ._utility import (
|
|
14
|
-
terminal_width,
|
|
15
|
-
colorize, no_color,
|
|
16
|
-
matrix_size,
|
|
17
|
-
delete_file,
|
|
18
|
-
download,
|
|
19
|
-
)
|
|
20
|
-
|
|
21
11
|
# Import global utilities - check what's actually available
|
|
22
|
-
from
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
# Import utility functions from internal modules
|
|
13
|
+
from ._global import test_bar_data_url
|
|
14
|
+
from ._global import test_data_url
|
|
15
|
+
from ._global import test_gif_url
|
|
16
|
+
from ._global import test_image_url
|
|
17
|
+
from ._global import test_video_url
|
|
26
18
|
|
|
27
19
|
# Import output utilities
|
|
28
|
-
from ._output import
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
from ._output import error as log_error
|
|
21
|
+
from ._output import info as log_info
|
|
22
|
+
from ._output import success as log_success
|
|
23
|
+
from ._output import warning as log_warning
|
|
24
|
+
from ._utility import colorize
|
|
25
|
+
from ._utility import delete_file
|
|
26
|
+
from ._utility import download
|
|
27
|
+
from ._utility import matrix_size
|
|
28
|
+
from ._utility import no_color
|
|
29
|
+
from ._utility import terminal_width
|
|
34
30
|
|
|
35
31
|
__all__ = [
|
|
36
32
|
# Terminal utilities
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
# Matrix utilities
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
"terminal_width",
|
|
34
|
+
"colorize",
|
|
35
|
+
"no_color",
|
|
36
|
+
# Matrix utilities
|
|
37
|
+
"matrix_size",
|
|
43
38
|
# File utilities
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
"delete_file",
|
|
40
|
+
"download",
|
|
46
41
|
# Test data URLs
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
"test_data_url",
|
|
43
|
+
"test_bar_data_url",
|
|
44
|
+
"test_image_url",
|
|
45
|
+
"test_gif_url",
|
|
46
|
+
"test_video_url",
|
|
50
47
|
# Logging utilities
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
"log_info",
|
|
49
|
+
"log_success",
|
|
50
|
+
"log_warning",
|
|
51
|
+
"log_error",
|
|
52
|
+
]
|