grplot 0.14.3__tar.gz → 0.14.4__tar.gz
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.
- {grplot-0.14.3 → grplot-0.14.4}/PKG-INFO +1 -1
- {grplot-0.14.3 → grplot-0.14.4}/grplot/__init__.py +23 -3
- grplot-0.14.4/grplot/features/label/check_label.py +13 -0
- grplot-0.14.4/grplot/features/label/label_def.py +8 -0
- grplot-0.14.4/grplot/features/label/label_type.py +13 -0
- grplot-0.14.4/grplot/features/optimizer/optimizer_data.py +67 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/setting.py +7 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot.egg-info/PKG-INFO +1 -1
- {grplot-0.14.3 → grplot-0.14.4}/grplot.egg-info/SOURCES.txt +4 -0
- grplot-0.14.4/grplot_seaborn/tests/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/setup.py +2 -1
- grplot-0.14.3/grplot/features/optimizer/optimizer_data.py +0 -62
- {grplot-0.14.3 → grplot-0.14.4}/LICENSE +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/README.md +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/analytic/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/label_add/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/label_add/check_label_add.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/label_add/label_add_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/label_add/label_add_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/statdesc_add/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/statdesc_add/statdesc_add_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/statdesc_add/statdesc_add_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/text_add/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/text_add/text_add_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/text_add/text_add_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/tick_add/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/tick_add/check_tick_add.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/tick_add/tick_add_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/add/tick_add/tick_add_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/dt/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/dt/check_dt.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/dt/dt_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/dt/dt_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/filter/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/filter/check_filter.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/filter/filter_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/font/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/font/check_fontsize.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/font/font_def.py +0 -0
- {grplot-0.14.3/grplot/features/legend → grplot-0.14.4/grplot/features/label}/__init__.py +0 -0
- {grplot-0.14.3/grplot/features/lim → grplot-0.14.4/grplot/features/legend}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/legend/check_legend.py +0 -0
- {grplot-0.14.3/grplot/features/log → grplot-0.14.4/grplot/features/lim}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/lim/check_lim.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/lim/lim_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/lim/lim_type.py +0 -0
- {grplot-0.14.3/grplot/features/optimizer → grplot-0.14.4/grplot/features/log}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/log/check_log.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/log/log_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/log/log_type.py +0 -0
- {grplot-0.14.3/grplot/features/pad → grplot-0.14.4/grplot/features/optimizer}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/optimizer/optimizer_analytic.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/optimizer/optimizer_key.py +0 -0
- {grplot-0.14.3/grplot/features/plot → grplot-0.14.4/grplot/features/pad}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/pad/check_pad.py +0 -0
- {grplot-0.14.3/grplot/features/rot → grplot-0.14.4/grplot/features/plot}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/plot/packedbubbles.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/plot/plot_multi_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/plot/plot_single_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/plot/plot_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/plot/treemaps.py +0 -0
- {grplot-0.14.3/grplot/features/saveas → grplot-0.14.4/grplot/features/rot}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/rot/check_rot.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/rot/rot_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/rot/rot_type.py +0 -0
- {grplot-0.14.3/grplot/features/sep/statdesc_sep → grplot-0.14.4/grplot/features/saveas}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/saveas/check_saveas.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/saveas/saveas_type.py +0 -0
- {grplot-0.14.3/grplot/features/sep/text_sep → grplot-0.14.4/grplot/features/sep/statdesc_sep}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/statdesc_sep/statdesc_sep_data_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/statdesc_sep/statdesc_sep_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/statdesc_sep/statdesc_sep_type.py +0 -0
- {grplot-0.14.3/grplot/features/sep/tick_sep → grplot-0.14.4/grplot/features/sep/text_sep}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/text_sep/text_sep_data_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/text_sep/text_sep_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/text_sep/text_sep_type.py +0 -0
- {grplot-0.14.3/grplot/features/statdesc → grplot-0.14.4/grplot/features/sep/tick_sep}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/tick_sep/check_tick_sep.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/tick_sep/tick_sep_data_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/tick_sep/tick_sep_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/sep/tick_sep/tick_sep_type.py +0 -0
- {grplot-0.14.3/grplot/features/text → grplot-0.14.4/grplot/features/statdesc}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/statdesc/check_statdesc.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/statdesc/statdesc_multi_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/statdesc/statdesc_plot_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/statdesc/statdesc_type.py +0 -0
- {grplot-0.14.3/grplot/features/title → grplot-0.14.4/grplot/features/text}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/text/check_text.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/text/text_def.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/text/text_type.py +0 -0
- {grplot-0.14.3/grplot/hotfix → grplot-0.14.4/grplot/features/title}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/title/check_title.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/features/title/title_def.py +0 -0
- {grplot-0.14.3/grplot/utils → grplot-0.14.4/grplot/hotfix}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/hotfix/axislabel_fix.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/hotfix/histplot_legend_fix.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/hotfix/histplot_percent_add.py +0 -0
- {grplot-0.14.3/grplot_seaborn/external → grplot-0.14.4/grplot/utils}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/arg_ax_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/arg_axis_ax_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/arg_plot_ax_type.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/check_axes.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/check_data_structure.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/check_pandas_index.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/first_valid_index.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/scientific_superscript.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot/utils/strtoarray.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot.egg-info/dependency_links.txt +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot.egg-info/requires.txt +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot.egg-info/top_level.txt +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/_core.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/_decorators.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/_docstrings.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/_statistics.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/_testing.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/algorithms.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/apionly.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/axisgrid.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/categorical.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/cm.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/colors/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/colors/crayons.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/colors/xkcd_rgb.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/conftest.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/distributions.py +0 -0
- {grplot-0.14.3/grplot_seaborn/tests → grplot-0.14.4/grplot_seaborn/external}/__init__.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/external/docscrape.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/external/husl.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/external/six.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/linearmodels.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/matrix.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/miscplot.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/palettes.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/rcmod.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/regression.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/relational.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_algorithms.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_axisgrid.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_categorical.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_core.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_decorators.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_distributions.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_docstrings.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_matrix.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_miscplot.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_palettes.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_rcmod.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_regression.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_relational.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_statistics.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/tests/test_utils.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/timeseries.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/utils.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/grplot_seaborn/widgets.py +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/pyproject.toml +0 -0
- {grplot-0.14.3 → grplot-0.14.4}/setup.cfg +0 -0
|
@@ -11,7 +11,7 @@ from grplot.utils.check_pandas_index import check_pandas_index
|
|
|
11
11
|
from grplot.utils.strtoarray import strtoarray
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
__version__ = '0.14.
|
|
14
|
+
__version__ = '0.14.4'
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def plot2d(plot, # default general value
|
|
@@ -60,6 +60,8 @@ def plot2d(plot, # default general value
|
|
|
60
60
|
label_add=None,
|
|
61
61
|
xlabel_add=None,
|
|
62
62
|
ylabel_add=None,
|
|
63
|
+
xlabel=None,
|
|
64
|
+
ylabel=None,
|
|
63
65
|
title=None,
|
|
64
66
|
legend_loc=None,
|
|
65
67
|
saveas=None,
|
|
@@ -200,10 +202,10 @@ def plot2d(plot, # default general value
|
|
|
200
202
|
by ghiffary rifqialdi
|
|
201
203
|
based on numpy, scipy, matplotlib, seaborn, squarify, pandas, and ipython
|
|
202
204
|
|
|
203
|
-
version = '0.14.
|
|
205
|
+
version = '0.14.4'
|
|
204
206
|
|
|
205
207
|
release date
|
|
206
|
-
|
|
208
|
+
14/02/2026
|
|
207
209
|
-----------------------------------------------
|
|
208
210
|
|
|
209
211
|
documentation is available at https://github.com/ghiffaryr/grplot
|
|
@@ -281,6 +283,8 @@ def plot2d(plot, # default general value
|
|
|
281
283
|
label_add=label_add,
|
|
282
284
|
xlabel_add=xlabel_add,
|
|
283
285
|
ylabel_add=ylabel_add,
|
|
286
|
+
xlabel=xlabel,
|
|
287
|
+
ylabel=ylabel,
|
|
284
288
|
title=title,
|
|
285
289
|
fontsize=fontsize,
|
|
286
290
|
tick_fontsize=tick_fontsize,
|
|
@@ -344,6 +348,8 @@ def plot2d(plot, # default general value
|
|
|
344
348
|
label_add=label_add,
|
|
345
349
|
xlabel_add=xlabel_add,
|
|
346
350
|
ylabel_add=ylabel_add,
|
|
351
|
+
xlabel=xlabel,
|
|
352
|
+
ylabel=ylabel,
|
|
347
353
|
title=title,
|
|
348
354
|
fontsize=fontsize,
|
|
349
355
|
tick_fontsize=tick_fontsize,
|
|
@@ -407,6 +413,8 @@ def plot2d(plot, # default general value
|
|
|
407
413
|
label_add=label_add,
|
|
408
414
|
xlabel_add=xlabel_add,
|
|
409
415
|
ylabel_add=ylabel_add,
|
|
416
|
+
xlabel=xlabel,
|
|
417
|
+
ylabel=ylabel,
|
|
410
418
|
title=title,
|
|
411
419
|
fontsize=fontsize,
|
|
412
420
|
tick_fontsize=tick_fontsize,
|
|
@@ -477,6 +485,8 @@ def plot2d(plot, # default general value
|
|
|
477
485
|
label_add=label_add,
|
|
478
486
|
xlabel_add=xlabel_add,
|
|
479
487
|
ylabel_add=ylabel_add,
|
|
488
|
+
xlabel=xlabel,
|
|
489
|
+
ylabel=ylabel,
|
|
480
490
|
title=title,
|
|
481
491
|
fontsize=fontsize,
|
|
482
492
|
tick_fontsize=tick_fontsize,
|
|
@@ -547,6 +557,8 @@ def plot2d(plot, # default general value
|
|
|
547
557
|
label_add=label_add,
|
|
548
558
|
xlabel_add=xlabel_add,
|
|
549
559
|
ylabel_add=ylabel_add,
|
|
560
|
+
xlabel=xlabel,
|
|
561
|
+
ylabel=ylabel,
|
|
550
562
|
title=title,
|
|
551
563
|
fontsize=fontsize,
|
|
552
564
|
tick_fontsize=tick_fontsize,
|
|
@@ -618,6 +630,8 @@ def plot2d(plot, # default general value
|
|
|
618
630
|
label_add=label_add,
|
|
619
631
|
xlabel_add=xlabel_add,
|
|
620
632
|
ylabel_add=ylabel_add,
|
|
633
|
+
xlabel=xlabel,
|
|
634
|
+
ylabel=ylabel,
|
|
621
635
|
title=title,
|
|
622
636
|
fontsize=fontsize,
|
|
623
637
|
tick_fontsize=tick_fontsize,
|
|
@@ -688,6 +702,8 @@ def plot2d(plot, # default general value
|
|
|
688
702
|
label_add=label_add,
|
|
689
703
|
xlabel_add=xlabel_add,
|
|
690
704
|
ylabel_add=ylabel_add,
|
|
705
|
+
xlabel=xlabel,
|
|
706
|
+
ylabel=ylabel,
|
|
691
707
|
title=title,
|
|
692
708
|
fontsize=fontsize,
|
|
693
709
|
tick_fontsize=tick_fontsize,
|
|
@@ -760,6 +776,8 @@ def plot2d(plot, # default general value
|
|
|
760
776
|
label_add=label_add,
|
|
761
777
|
xlabel_add=xlabel_add,
|
|
762
778
|
ylabel_add=ylabel_add,
|
|
779
|
+
xlabel=xlabel,
|
|
780
|
+
ylabel=ylabel,
|
|
763
781
|
title=title,
|
|
764
782
|
fontsize=fontsize,
|
|
765
783
|
tick_fontsize=tick_fontsize,
|
|
@@ -829,6 +847,8 @@ def plot2d(plot, # default general value
|
|
|
829
847
|
label_add=label_add,
|
|
830
848
|
xlabel_add=xlabel_add,
|
|
831
849
|
ylabel_add=ylabel_add,
|
|
850
|
+
xlabel=xlabel,
|
|
851
|
+
ylabel=ylabel,
|
|
832
852
|
title=title,
|
|
833
853
|
fontsize=fontsize,
|
|
834
854
|
tick_fontsize=tick_fontsize,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from grplot.features.label.label_type import label_type
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def check_label(ax, xlabel, ylabel, axes):
|
|
5
|
+
if xlabel is not None:
|
|
6
|
+
label_type(ax=ax, axis='x', label=xlabel, axes=axes)
|
|
7
|
+
else:
|
|
8
|
+
pass
|
|
9
|
+
if ylabel is not None:
|
|
10
|
+
label_type(ax=ax, axis='y', label=ylabel, axes=axes)
|
|
11
|
+
else:
|
|
12
|
+
pass
|
|
13
|
+
return ax
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from grplot.features.label.label_def import label_def
|
|
2
|
+
from grplot.utils.arg_ax_type import arg_ax_type
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def label_type(ax, axis, label, axes):
|
|
6
|
+
label = arg_ax_type(arg=label, axes=axes)
|
|
7
|
+
if label is None:
|
|
8
|
+
pass
|
|
9
|
+
elif type(label) == str:
|
|
10
|
+
label_def(ax=ax, axis=axis, label=label)
|
|
11
|
+
else:
|
|
12
|
+
raise Exception('Unknown label argument!')
|
|
13
|
+
return ax
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import numpy
|
|
2
|
+
import pandas
|
|
3
|
+
from grplot.features.optimizer.optimizer_key import optimizer_key
|
|
4
|
+
from grplot.utils.arg_ax_type import arg_ax_type
|
|
5
|
+
from grplot.utils.arg_plot_ax_type import arg_plot_ax_type
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def optimizer_data(plot, df, x, y, hue, size, style, units, axes, mode):
|
|
9
|
+
# key
|
|
10
|
+
key = numpy.array([])
|
|
11
|
+
# x and y
|
|
12
|
+
key = numpy.concatenate([key, optimizer_key(var_list=[x, y])])
|
|
13
|
+
plot_ = arg_ax_type(arg=plot, axes=axes)
|
|
14
|
+
if plot_ is None:
|
|
15
|
+
return df
|
|
16
|
+
elif type(plot_) == str:
|
|
17
|
+
# hue, size, style, and units
|
|
18
|
+
hue_, size_, style_, units_ = hue, size, style, units
|
|
19
|
+
for plot in enumerate(plot_.split('+')):
|
|
20
|
+
hue, size, style, units = map(arg_plot_ax_type, (hue_, size_, style_, units_), numpy.hstack([plot]*4), numpy.hstack([axes]*4))
|
|
21
|
+
key = numpy.concatenate([key, optimizer_key(var_list=[hue, size, style, units])])
|
|
22
|
+
# key length check
|
|
23
|
+
if len(key) > 0:
|
|
24
|
+
# filter data
|
|
25
|
+
if type(df) == dict:
|
|
26
|
+
df_ = {}
|
|
27
|
+
for k in numpy.unique(key):
|
|
28
|
+
if k in df.keys():
|
|
29
|
+
if type(df[k]) == list:
|
|
30
|
+
if mode in ['numpy', 'saver']:
|
|
31
|
+
df_[k] = numpy.array(df[k])
|
|
32
|
+
elif mode in ['pandas', 'perf']:
|
|
33
|
+
df_ = pandas.DataFrame.from_dict({k: df[k] for k in numpy.unique(key) if k in df.keys()})
|
|
34
|
+
break
|
|
35
|
+
else:
|
|
36
|
+
raise Exception('Unknown optimizer argument!')
|
|
37
|
+
elif type(df[k]) == numpy.ndarray:
|
|
38
|
+
if mode in ['numpy', 'saver']:
|
|
39
|
+
df_[k] = df[k]
|
|
40
|
+
elif mode in ['pandas', 'perf']:
|
|
41
|
+
df_ = pandas.DataFrame.from_dict({k: df[k] for k in numpy.unique(key) if k in df.keys()})
|
|
42
|
+
break
|
|
43
|
+
else:
|
|
44
|
+
raise Exception('Unknown optimizer argument!')
|
|
45
|
+
else:
|
|
46
|
+
raise Exception('Unsupported dictionary sub data structure!')
|
|
47
|
+
else:
|
|
48
|
+
pass
|
|
49
|
+
elif type(df) == pandas.core.frame.DataFrame:
|
|
50
|
+
if mode in ['numpy', 'saver']:
|
|
51
|
+
df_ = {k: df[[k]].to_records()[k] for k in numpy.unique(key) if k in df}
|
|
52
|
+
elif mode in ['pandas', 'perf']:
|
|
53
|
+
df_ = df[[k for k in numpy.unique(key) if k in df]]
|
|
54
|
+
# if there is only one column
|
|
55
|
+
if type(df_) == pandas.core.series.Series:
|
|
56
|
+
df_ = pandas.DataFrame(df_)
|
|
57
|
+
else:
|
|
58
|
+
pass
|
|
59
|
+
else:
|
|
60
|
+
raise Exception('Unknown optimizer argument!')
|
|
61
|
+
else:
|
|
62
|
+
raise Exception('Unsupported data structure!')
|
|
63
|
+
else:
|
|
64
|
+
raise Exception('Wrong data type of axis!')
|
|
65
|
+
return df_
|
|
66
|
+
else:
|
|
67
|
+
raise Exception('Unknown plot argument!')
|
|
@@ -12,6 +12,7 @@ from grplot.features.rot.check_rot import check_rot
|
|
|
12
12
|
from grplot.features.statdesc.check_statdesc import check_statdesc
|
|
13
13
|
from grplot.features.text.check_text import check_text
|
|
14
14
|
from grplot.features.add.label_add.check_label_add import check_label_add
|
|
15
|
+
from grplot.features.label.check_label import check_label
|
|
15
16
|
from grplot.features.title.check_title import check_title
|
|
16
17
|
from grplot.features.font.font_def import font_def
|
|
17
18
|
from grplot.features.legend.check_legend import check_legend
|
|
@@ -57,6 +58,8 @@ def setting(plot,
|
|
|
57
58
|
label_add,
|
|
58
59
|
xlabel_add,
|
|
59
60
|
ylabel_add,
|
|
61
|
+
xlabel,
|
|
62
|
+
ylabel,
|
|
60
63
|
title,
|
|
61
64
|
fontsize,
|
|
62
65
|
tick_fontsize,
|
|
@@ -189,6 +192,10 @@ def setting(plot,
|
|
|
189
192
|
xaxislabel=xaxislabel,
|
|
190
193
|
yaxislabel=yaxislabel,
|
|
191
194
|
axes=axes)
|
|
195
|
+
check_label(ax=ax,
|
|
196
|
+
xlabel=xlabel,
|
|
197
|
+
ylabel=ylabel,
|
|
198
|
+
axes=axes)
|
|
192
199
|
check_title(ax=ax,
|
|
193
200
|
title=title,
|
|
194
201
|
title_fontsize=title_fontsize,
|
|
@@ -35,6 +35,10 @@ grplot/features/filter/filter_def.py
|
|
|
35
35
|
grplot/features/font/__init__.py
|
|
36
36
|
grplot/features/font/check_fontsize.py
|
|
37
37
|
grplot/features/font/font_def.py
|
|
38
|
+
grplot/features/label/__init__.py
|
|
39
|
+
grplot/features/label/check_label.py
|
|
40
|
+
grplot/features/label/label_def.py
|
|
41
|
+
grplot/features/label/label_type.py
|
|
38
42
|
grplot/features/legend/__init__.py
|
|
39
43
|
grplot/features/legend/check_legend.py
|
|
40
44
|
grplot/features/lim/__init__.py
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from setuptools import setup
|
|
2
2
|
|
|
3
3
|
DISTNAME = "grplot"
|
|
4
|
-
VERSION = "0.14.
|
|
4
|
+
VERSION = "0.14.4"
|
|
5
5
|
MAINTAINER = "Ghiffary Rifqialdi"
|
|
6
6
|
MAINTAINER_EMAIL = "grifqialdi@gmail.com"
|
|
7
7
|
DESCRIPTION = "grplot: lazy statistical data visualization"
|
|
@@ -42,6 +42,7 @@ PACKAGES = ["grplot",
|
|
|
42
42
|
"grplot.features.dt",
|
|
43
43
|
"grplot.features.filter",
|
|
44
44
|
"grplot.features.font",
|
|
45
|
+
"grplot.features.label",
|
|
45
46
|
"grplot.features.legend",
|
|
46
47
|
"grplot.features.lim",
|
|
47
48
|
"grplot.features.log",
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import numpy
|
|
2
|
-
import pandas
|
|
3
|
-
from grplot.features.optimizer.optimizer_key import optimizer_key
|
|
4
|
-
from grplot.utils.arg_ax_type import arg_ax_type
|
|
5
|
-
from grplot.utils.arg_plot_ax_type import arg_plot_ax_type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def optimizer_data(plot, df, x, y, hue, size, style, units, axes, mode):
|
|
9
|
-
# key
|
|
10
|
-
key = numpy.array([])
|
|
11
|
-
# x and y
|
|
12
|
-
key = numpy.concatenate([key, optimizer_key(var_list=[x, y])])
|
|
13
|
-
# hue, size, style, and units
|
|
14
|
-
plot_ = arg_ax_type(arg=plot, axes=axes)
|
|
15
|
-
hue_, size_, style_, units_ = hue, size, style, units
|
|
16
|
-
for plot in enumerate(plot_.split('+')):
|
|
17
|
-
hue, size, style, units = map(arg_plot_ax_type, (hue_, size_, style_, units_), numpy.hstack([plot]*4), numpy.hstack([axes]*4))
|
|
18
|
-
key = numpy.concatenate([key, optimizer_key(var_list=[hue, size, style, units])])
|
|
19
|
-
# key length check
|
|
20
|
-
if len(key) > 0:
|
|
21
|
-
# filter data
|
|
22
|
-
if type(df) == dict:
|
|
23
|
-
df_ = {}
|
|
24
|
-
for k in numpy.unique(key):
|
|
25
|
-
if k in df.keys():
|
|
26
|
-
if type(df[k]) == list:
|
|
27
|
-
if mode in ['numpy', 'saver']:
|
|
28
|
-
df_[k] = numpy.array(df[k])
|
|
29
|
-
elif mode in ['pandas', 'perf']:
|
|
30
|
-
df_ = pandas.DataFrame.from_dict({k: df[k] for k in numpy.unique(key) if k in df.keys()})
|
|
31
|
-
break
|
|
32
|
-
else:
|
|
33
|
-
raise Exception('Unknown optimizer argument!')
|
|
34
|
-
elif type(df[k]) == numpy.ndarray:
|
|
35
|
-
if mode in ['numpy', 'saver']:
|
|
36
|
-
df_[k] = df[k]
|
|
37
|
-
elif mode in ['pandas', 'perf']:
|
|
38
|
-
df_ = pandas.DataFrame.from_dict({k: df[k] for k in numpy.unique(key) if k in df.keys()})
|
|
39
|
-
break
|
|
40
|
-
else:
|
|
41
|
-
raise Exception('Unknown optimizer argument!')
|
|
42
|
-
else:
|
|
43
|
-
raise Exception('Unsupported dictionary sub data structure!')
|
|
44
|
-
else:
|
|
45
|
-
pass
|
|
46
|
-
elif type(df) == pandas.core.frame.DataFrame:
|
|
47
|
-
if mode in ['numpy', 'saver']:
|
|
48
|
-
df_ = {k: df[[k]].to_records()[k] for k in numpy.unique(key) if k in df}
|
|
49
|
-
elif mode in ['pandas', 'perf']:
|
|
50
|
-
df_ = df[[k for k in numpy.unique(key) if k in df]]
|
|
51
|
-
# if there is only one column
|
|
52
|
-
if type(df_) == pandas.core.series.Series:
|
|
53
|
-
df_ = pandas.DataFrame(df_)
|
|
54
|
-
else:
|
|
55
|
-
pass
|
|
56
|
-
else:
|
|
57
|
-
raise Exception('Unknown optimizer argument!')
|
|
58
|
-
else:
|
|
59
|
-
raise Exception('Unsupported data structure!')
|
|
60
|
-
else:
|
|
61
|
-
raise Exception('Wrong data type of axis!')
|
|
62
|
-
return df_
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grplot-0.14.3/grplot/features/sep/statdesc_sep → grplot-0.14.4/grplot/features/saveas}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grplot-0.14.3/grplot/features/statdesc → grplot-0.14.4/grplot/features/sep/tick_sep}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|