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/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
- # Basic plotting functions
15
- scatter, plot, bar, pie,
16
- matrix_plot, candlestick,
17
-
18
- # Plot customization
19
- title, xlabel, ylabel,
20
- xlim, ylim,
21
- xscale, yscale,
22
- grid, frame,
23
-
24
- # Colors and themes
25
- theme, colorize,
26
-
27
- # Layout and display
28
- show, build, sleep,
29
- clear_figure, clear_data, clear_terminal, clear_color,
30
- clf, cld, clt, clc,
31
-
32
- # Figure management
33
- plotsize, limitsize,
34
- subplots, subplot,
35
-
36
- # Data utilities
37
- save_fig,
38
-
39
- # Interactive features
40
- banner_mode,
41
- )
42
-
43
- # Import utilities that users might need
44
- from ._utility import (
45
- terminal_width, terminal_height,
46
- colorize as color_text,
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
- play_video,
54
- play_gif,
55
- )
49
+ from ._global import play_gif
50
+ from ._global import play_video
56
51
 
57
- # Import core functions for media handling
58
- from ._core import (
59
- image_plot,
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
- 'scatter', 'plot', 'bar',
65
- 'matrix_plot', 'candlestick',
66
-
67
- # Plot customization
68
- 'title', 'xlabel', 'ylabel',
69
- 'xlim', 'ylim',
70
- 'xscale', 'yscale',
71
- 'grid', 'frame',
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
- 'theme', 'colorize', 'color_text',
75
-
77
+ "theme",
78
+ "colorize",
79
+ "color_text",
76
80
  # Layout and display
77
- 'show', 'build', 'sleep',
78
- 'clear_figure', 'clear_data', 'clear_terminal', 'clear_color',
79
- 'clf', 'cld', 'clt', 'clc',
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
- 'plotsize', 'limitsize', 'subplots', 'subplot',
83
-
93
+ "plotsize",
94
+ "limitsize",
95
+ "subplots",
96
+ "subplot",
84
97
  # Utilities
85
- 'save_fig',
86
- 'terminal_width', 'terminal_height',
87
- 'banner_mode',
88
-
98
+ "save_fig",
99
+ "terminal_width",
100
+ "terminal_height",
101
+ "banner_mode",
89
102
  # Media handling
90
- 'download_file', 'delete_file',
91
- 'image_plot', 'play_gif', 'play_video',
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
- 'get_theme_info', 'apply_theme',
26
- 'apply_chuk_theme_to_chart',
27
- 'get_chuk_theme_for_banner_mode',
28
- 'create_chuk_term_themes',
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 ._global import (
23
- test_data_url, test_bar_data_url,
24
- test_image_url, test_gif_url, test_video_url,
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
- info as log_info,
30
- success as log_success,
31
- warning as log_warning,
32
- error as log_error,
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
- 'terminal_width',
38
- 'colorize', 'no_color',
39
-
40
- # Matrix utilities
41
- 'matrix_size',
42
-
33
+ "terminal_width",
34
+ "colorize",
35
+ "no_color",
36
+ # Matrix utilities
37
+ "matrix_size",
43
38
  # File utilities
44
- 'delete_file', 'download',
45
-
39
+ "delete_file",
40
+ "download",
46
41
  # Test data URLs
47
- 'test_data_url', 'test_bar_data_url',
48
- 'test_image_url', 'test_gif_url', 'test_video_url',
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
- 'log_info', 'log_success', 'log_warning', 'log_error',
52
- ]
48
+ "log_info",
49
+ "log_success",
50
+ "log_warning",
51
+ "log_error",
52
+ ]