as-cle-bert commited on
Commit
1869b55
1 Parent(s): ba96324

Update plotly_im.py

Browse files
Files changed (1) hide show
  1. plotly_im.py +0 -26
plotly_im.py CHANGED
@@ -1,29 +1,3 @@
1
- # import pandas as pd
2
- # import plotly.express as px
3
-
4
- # def plot_to_html(df: pd.DataFrame, x: str, y: str, labels: dict, color_based_on: str, y_label: str = "", x_label: str = "", title: str = "", filepath: str = "plot") -> str:
5
- # # Create a bar plot with a greyscale color theme
6
- # fig = px.bar(
7
- # df,
8
- # x=x,
9
- # y=y,
10
- # title=title,
11
- # labels=labels,
12
- # color=color_based_on,
13
- # color_continuous_scale=px.colors.sequential.gray_r
14
- # )
15
-
16
- # # Update layout for appearance
17
- # fig.update_layout(
18
- # xaxis_title=x_label,
19
- # yaxis_title=y_label, # Adding the y_label explicitly
20
- # template="plotly_white", # Light background for greyscale contrast
21
- # title_x=0.5, # Center the title
22
- # )
23
-
24
- # fig.write_image(f"{filepath}.png")
25
- # return f"{filepath}.png"
26
-
27
  import pandas as pd
28
  import plotly.express as px
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import pandas as pd
2
  import plotly.express as px
3