plotly-calplot
Advanced tools
+1
-7
| Metadata-Version: 2.1 | ||
| Name: plotly-calplot | ||
| Version: 0.1.11 | ||
| Version: 0.1.12 | ||
| Summary: Calendar Plot made with Plotly | ||
@@ -15,11 +15,5 @@ Home-page: https://github.com/brunorosilva/plotly-calplot | ||
| Classifier: Programming Language :: Python :: 3.9 | ||
| Requires-Dist: flake8 (>=4.0.1,<5.0.0) | ||
| Requires-Dist: isort (>=5.10.1,<6.0.0) | ||
| Requires-Dist: mypy (>=0.942,<0.943) | ||
| Requires-Dist: numpy (>=1.22.3,<2.0.0) | ||
| Requires-Dist: pandas (>=1.0.5,<2.0.0) | ||
| Requires-Dist: plotly (>=5.4.0,<6.0.0) | ||
| Requires-Dist: pytest (>=7.1.1,<8.0.0) | ||
| Requires-Dist: pytest-cov (>=3.0.0,<4.0.0) | ||
| Requires-Dist: vulture (>=2.3,<3.0) | ||
| Project-URL: Repository, https://github.com/brunorosilva/plotly-calplot | ||
@@ -26,0 +20,0 @@ Description-Content-Type: text/markdown |
| from datetime import date | ||
| from typing import Any, Dict | ||
| from typing import Dict, Any | ||
| from pandas import DataFrame, Grouper, Series | ||
| from pandas import DataFrame, Series, Grouper | ||
| from plotly import graph_objects as go | ||
@@ -64,2 +64,3 @@ from plotly.subplots import make_subplots | ||
| years_title: bool = False, | ||
| width: int = 800, | ||
| colorscale: str = "greens", | ||
@@ -109,2 +110,5 @@ title: str = "", | ||
| width : int = 800 | ||
| controls the width of the plot | ||
| colorscale : str = "greens" | ||
@@ -164,2 +168,3 @@ controls the colorscale for the calendar, works | ||
| dark_theme=dark_theme, | ||
| width=width, | ||
| gap=gap, | ||
@@ -185,2 +190,3 @@ title=title, | ||
| gap: int = 2, | ||
| width: int = 400, | ||
| colorscale: str = "greens", | ||
@@ -214,2 +220,5 @@ title: str = "", | ||
| width : int = 400 | ||
| controls the width of the plot | ||
| colorscale : str = "greens" | ||
@@ -255,2 +264,3 @@ controls the colorscale for the calendar, works | ||
| dark_theme=dark_theme, | ||
| width=width, | ||
| height=total_height, | ||
@@ -257,0 +267,0 @@ title=title, |
@@ -1,2 +0,2 @@ | ||
| from typing import Any, List, Optional | ||
| from typing import Any, List | ||
@@ -99,3 +99,4 @@ import pandas as pd | ||
| layout: go.Layout, | ||
| total_height: Optional[int], | ||
| width: Any, | ||
| total_height: Any, | ||
| ) -> go.Figure: | ||
@@ -105,3 +106,3 @@ fig.update_layout(layout) | ||
| fig.update_yaxes(layout["yaxis"]) | ||
| fig.update_layout(height=total_height) | ||
| fig.update_layout(width=width, height=total_height) | ||
| fig.add_traces(cplt, rows=[(row + 1)] * len(cplt), cols=[1] * len(cplt)) | ||
@@ -108,0 +109,0 @@ return fig |
@@ -25,2 +25,3 @@ from pandas.core.frame import DataFrame | ||
| gap: int = 1, | ||
| width: int = 800, | ||
| colorscale: str = "greens", | ||
@@ -56,4 +57,4 @@ title: str = "", | ||
| layout = decide_layout(dark_theme, title, month_names, month_positions) | ||
| fig = update_plot_with_current_layout(fig, cplt, row, layout, total_height) | ||
| fig = update_plot_with_current_layout(fig, cplt, row, layout, width, total_height) | ||
| return fig |
+6
-7
| [tool.poetry] | ||
| name = "plotly_calplot" | ||
| version = "0.1.11" | ||
| version = "0.1.12" | ||
| description = "Calendar Plot made with Plotly" | ||
@@ -14,9 +14,3 @@ authors = ["Bruno Rodrigues Silva <b.rosilva1@gmail.com>"] | ||
| pandas = "^1.0.5" | ||
| isort = "^5.10.1" | ||
| flake8 = "^4.0.1" | ||
| vulture = "^2.3" | ||
| mypy = "^0.942" | ||
| numpy = "^1.22.3" | ||
| pytest = "^7.1.1" | ||
| pytest-cov = "^3.0.0" | ||
@@ -27,2 +21,7 @@ [tool.poetry.dev-dependencies] | ||
| streamlit = "^1.3.0" | ||
| pytest = "^7.1.1" | ||
| pytest-cov = "^3.0.0" | ||
| mypy = "^0.942" | ||
| flake8 = "^4.0.1" | ||
| vulture = "^2.3" | ||
@@ -29,0 +28,0 @@ [build-system] |
+2
-10
@@ -11,15 +11,7 @@ # -*- coding: utf-8 -*- | ||
| install_requires = \ | ||
| ['flake8>=4.0.1,<5.0.0', | ||
| 'isort>=5.10.1,<6.0.0', | ||
| 'mypy>=0.942,<0.943', | ||
| 'numpy>=1.22.3,<2.0.0', | ||
| 'pandas>=1.0.5,<2.0.0', | ||
| 'plotly>=5.4.0,<6.0.0', | ||
| 'pytest-cov>=3.0.0,<4.0.0', | ||
| 'pytest>=7.1.1,<8.0.0', | ||
| 'vulture>=2.3,<3.0'] | ||
| ['numpy>=1.22.3,<2.0.0', 'pandas>=1.0.5,<2.0.0', 'plotly>=5.4.0,<6.0.0'] | ||
| setup_kwargs = { | ||
| 'name': 'plotly-calplot', | ||
| 'version': '0.1.11', | ||
| 'version': '0.1.12', | ||
| 'description': 'Calendar Plot made with Plotly', | ||
@@ -26,0 +18,0 @@ 'long_description': '# Calendar Heatmap with Plotly\nMaking it easier to visualize and costumize time relevant or time series data with plotly interaction.\n\nNew to the library? Read [this Medium article](https://medium.com/@brunorosilva/5fc322125db7).\n\nThis plot is a very similar to the contribuitions available on Github and Gitlab profile pages and to [Calplot](https://github.com/tomkwok/calplot) - which is a pyplot implementation of the calendar heatmap, thus it is not interactive right off the bat.\n\nThe first mention I could find of this plot being made with plotly was in [this forum post](https://community.plotly.com/t/colored-calendar-heatmap-in-dash/10907/16) and it got my attention as something it should be easily available to anyone.\n\n# Installation\n``` bash\npip install plotly-calplot\n```\n\n# Examples\n\nIn [this Medium article](https://medium.com/@brunorosilva/5fc322125db7) I covered lot\'s of usage methods for this library.\n``` python\nfrom plotly_calplot import calplot\n\nfig = calplot(df, x="date", y="value")\nfig.show()\n# you can also adjust layout and your usual plotly stuff\n```\n\n<img src="https://github.com/brunorosilva/plotly-calplot/blob/main/assets/images/example.png?raw=true">\n', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
499
0.4%21679
-0.69%