plotly-calplot
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: plotly-calplot | ||
| Version: 0.1.10 | ||
| Version: 0.1.11 | ||
| Summary: Calendar Plot made with Plotly | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/brunorosilva/plotly-calplot |
| from datetime import date | ||
| from typing import Dict, Any | ||
| from typing import Any, Dict | ||
| from pandas import DataFrame, Series, Grouper | ||
| from pandas import DataFrame, Grouper, Series | ||
| from plotly import graph_objects as go | ||
@@ -64,3 +64,2 @@ from plotly.subplots import make_subplots | ||
| years_title: bool = False, | ||
| width: int = 800, | ||
| colorscale: str = "greens", | ||
@@ -110,5 +109,2 @@ title: str = "", | ||
| width : int = 800 | ||
| controls the width of the plot | ||
| colorscale : str = "greens" | ||
@@ -168,3 +164,2 @@ controls the colorscale for the calendar, works | ||
| dark_theme=dark_theme, | ||
| width=width, | ||
| gap=gap, | ||
@@ -190,3 +185,2 @@ title=title, | ||
| gap: int = 2, | ||
| width: int = 400, | ||
| colorscale: str = "greens", | ||
@@ -220,5 +214,2 @@ title: str = "", | ||
| width : int = 400 | ||
| controls the width of the plot | ||
| colorscale : str = "greens" | ||
@@ -264,3 +255,2 @@ controls the colorscale for the calendar, works | ||
| dark_theme=dark_theme, | ||
| width=width, | ||
| height=total_height, | ||
@@ -267,0 +257,0 @@ title=title, |
@@ -1,2 +0,2 @@ | ||
| from typing import Any, List | ||
| from typing import Any, List, Optional | ||
@@ -99,4 +99,3 @@ import pandas as pd | ||
| layout: go.Layout, | ||
| width: Any, | ||
| total_height: Any, | ||
| total_height: Optional[int], | ||
| ) -> go.Figure: | ||
@@ -106,3 +105,3 @@ fig.update_layout(layout) | ||
| fig.update_yaxes(layout["yaxis"]) | ||
| fig.update_layout(width=width, height=total_height) | ||
| fig.update_layout(height=total_height) | ||
| fig.add_traces(cplt, rows=[(row + 1)] * len(cplt), cols=[1] * len(cplt)) | ||
@@ -109,0 +108,0 @@ return fig |
@@ -25,3 +25,2 @@ from pandas.core.frame import DataFrame | ||
| gap: int = 1, | ||
| width: int = 800, | ||
| colorscale: str = "greens", | ||
@@ -57,4 +56,4 @@ title: str = "", | ||
| layout = decide_layout(dark_theme, title, month_names, month_positions) | ||
| fig = update_plot_with_current_layout(fig, cplt, row, layout, width, total_height) | ||
| fig = update_plot_with_current_layout(fig, cplt, row, layout, total_height) | ||
| return fig |
+1
-1
| [tool.poetry] | ||
| name = "plotly_calplot" | ||
| version = "0.1.10" | ||
| version = "0.1.11" | ||
| description = "Calendar Plot made with Plotly" | ||
@@ -5,0 +5,0 @@ authors = ["Bruno Rodrigues Silva <b.rosilva1@gmail.com>"] |
+1
-1
@@ -23,3 +23,3 @@ # -*- coding: utf-8 -*- | ||
| 'name': 'plotly-calplot', | ||
| 'version': '0.1.10', | ||
| 'version': '0.1.11', | ||
| 'description': 'Calendar Plot made with Plotly', | ||
@@ -26,0 +26,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.
21829
-1.14%497
-1.97%