afshin-dini commited on
Commit
3eaf500
·
1 Parent(s): 46d5c46

Update the margins

Browse files
src/ai_dashboard/plot_plugin/bar_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """This is the bar plot module for AI Dashboard."""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -29,6 +30,7 @@ class BarPlotPlugin(BasePlotPlugin):
29
  clearable=False,
30
  persistence=True,
31
  persistence_type="memory",
 
32
  ),
33
  ],
34
  style={"width": "170px", "marginRight": "12px"},
 
1
  """This is the bar plot module for AI Dashboard."""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
30
  clearable=False,
31
  persistence=True,
32
  persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
  style={"width": "170px", "marginRight": "12px"},
src/ai_dashboard/plot_plugin/box_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """Box Plot plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import plotly.express as px
5
  from dash import html, dcc
@@ -24,9 +25,11 @@ class BoxPlotPlugin(BasePlotPlugin):
24
  value=options[0],
25
  clearable=False,
26
  persistence=True,
 
 
27
  ),
28
  ],
29
- style={"width": "180px", "marginBottom": "10px"},
30
  )
31
 
32
  def controls(self) -> Any:
 
1
  """Box Plot plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import plotly.express as px
6
  from dash import html, dcc
 
25
  value=options[0],
26
  clearable=False,
27
  persistence=True,
28
+ persistence_type="memory",
29
+ style={"color": "#000"},
30
  ),
31
  ],
32
+ style={"width": "130px"},
33
  )
34
 
35
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/geo_scatter.py CHANGED
@@ -1,5 +1,6 @@
1
  """Geo Scatter / Choropleth plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -28,9 +29,11 @@ class GeoPlotPlugin(BasePlotPlugin):
28
  value=options[0],
29
  clearable=False,
30
  persistence=True,
 
 
31
  ),
32
  ],
33
- style={"width": "220px", "marginBottom": "10px"},
34
  )
35
 
36
  def controls(self) -> Any:
 
1
  """Geo Scatter / Choropleth plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
29
  value=options[0],
30
  clearable=False,
31
  persistence=True,
32
+ persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
+ style={"width": "130px"},
37
  )
38
 
39
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/grouped_bar_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """Grouped Bar Plot plugin"""
2
 
 
3
  from typing import Any, List
4
  import plotly.express as px
5
  from dash import html, dcc
@@ -24,8 +25,11 @@ class GroupedBarPlotPlugin(BasePlotPlugin):
24
  value=options[0],
25
  clearable=False,
26
  persistence=True,
 
 
27
  ),
28
- ]
 
29
  )
30
 
31
  def controls(self) -> Any:
 
1
  """Grouped Bar Plot plugin"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import plotly.express as px
6
  from dash import html, dcc
 
25
  value=options[0],
26
  clearable=False,
27
  persistence=True,
28
+ persistence_type="memory",
29
+ style={"color": "#000"},
30
  ),
31
+ ],
32
+ style={"width": "130px"},
33
  )
34
 
35
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/hexbin_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """Hexbin Plot plugin"""
2
 
 
3
  from typing import Any, List
4
  import plotly.express as px
5
  from dash import html, dcc
@@ -24,8 +25,11 @@ class HexbinPlotPlugin(BasePlotPlugin):
24
  value=options[0],
25
  clearable=False,
26
  persistence=True,
 
 
27
  ),
28
- ]
 
29
  )
30
 
31
  def controls(self) -> Any:
 
1
  """Hexbin Plot plugin"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import plotly.express as px
6
  from dash import html, dcc
 
25
  value=options[0],
26
  clearable=False,
27
  persistence=True,
28
+ persistence_type="memory",
29
+ style={"color": "#000"},
30
  ),
31
+ ],
32
+ style={"width": "130px"},
33
  )
34
 
35
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/histogram_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """This module is for plotting histograms in AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -29,9 +30,10 @@ class HistogramPlotPlugin(BasePlotPlugin):
29
  clearable=False,
30
  persistence=True,
31
  persistence_type="memory",
 
32
  ),
33
  ],
34
- style={"width": "170px", "marginRight": "12px"},
35
  )
36
 
37
  def controls(self) -> Any:
 
1
  """This module is for plotting histograms in AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
30
  clearable=False,
31
  persistence=True,
32
  persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
+ style={"width": "130px"},
37
  )
38
 
39
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/line_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """Line Plot plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -28,9 +29,11 @@ class LinePlotPlugin(BasePlotPlugin):
28
  value=options[0],
29
  clearable=False,
30
  persistence=True,
 
 
31
  ),
32
  ],
33
- style={"width": "180px", "marginBottom": "10px"},
34
  )
35
 
36
  def controls(self) -> Any:
 
1
  """Line Plot plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
29
  value=options[0],
30
  clearable=False,
31
  persistence=True,
32
+ persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
+ style={"width": "130px"},
37
  )
38
 
39
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/regression_line.py CHANGED
@@ -1,5 +1,6 @@
1
  """Regression Plot plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -28,9 +29,11 @@ class RegressionPlotPlugin(BasePlotPlugin):
28
  value=options[0],
29
  clearable=False,
30
  persistence=True,
 
 
31
  ),
32
  ],
33
- style={"width": "200px", "marginBottom": "10px"},
34
  )
35
 
36
  def controls(self) -> Any:
 
1
  """Regression Plot plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
29
  value=options[0],
30
  clearable=False,
31
  persistence=True,
32
+ persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
+ style={"width": "130px"},
37
  )
38
 
39
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/scatter_3d.py CHANGED
@@ -1,5 +1,6 @@
1
  """3D Scatter Plot plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -28,9 +29,11 @@ class Scatter3DPlotPlugin(BasePlotPlugin):
28
  value=options[0],
29
  clearable=False,
30
  persistence=True,
 
 
31
  ),
32
  ],
33
- style={"width": "200px", "marginBottom": "10px"},
34
  )
35
 
36
  def controls(self) -> Any:
 
1
  """3D Scatter Plot plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
29
  value=options[0],
30
  clearable=False,
31
  persistence=True,
32
+ persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
+ style={"width": "130px"},
37
  )
38
 
39
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/scatter_matrix.py CHANGED
@@ -1,5 +1,6 @@
1
  """Scatter Matrix plugin"""
2
 
 
3
  from typing import Any, List
4
  import plotly.express as px
5
  from dash import dcc, html
@@ -25,8 +26,11 @@ class ScatterMatrixPlugin(BasePlotPlugin):
25
  clearable=False,
26
  multi=True,
27
  persistence=True,
 
 
28
  ),
29
- ]
 
30
  )
31
 
32
  def controls(self) -> Any:
 
1
  """Scatter Matrix plugin"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import plotly.express as px
6
  from dash import dcc, html
 
26
  clearable=False,
27
  multi=True,
28
  persistence=True,
29
+ persistence_type="memory",
30
+ style={"color": "#000"},
31
  ),
32
+ ],
33
+ style={"width": "130px"},
34
  )
35
 
36
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/scatter_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """This is the scatter plot module for AI Dashboard."""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -29,9 +30,10 @@ class ScatterPlotPlugin(BasePlotPlugin):
29
  clearable=False,
30
  persistence=True,
31
  persistence_type="memory",
 
32
  ),
33
  ],
34
- style={"width": "170px", "marginRight": "12px"},
35
  )
36
 
37
  def controls(self) -> Any:
@@ -47,7 +49,7 @@ class ScatterPlotPlugin(BasePlotPlugin):
47
  self.dropdown("color", "Color", all_cols),
48
  self.dropdown("hover", "Hover", all_cols),
49
  ],
50
- style={"display": "flex", "flexWrap": "wrap", "gap": "12px"},
51
  )
52
 
53
  def render(self, **kwargs: Any) -> Any:
 
1
  """This is the scatter plot module for AI Dashboard."""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
30
  clearable=False,
31
  persistence=True,
32
  persistence_type="memory",
33
+ style={"color": "#000"},
34
  ),
35
  ],
36
+ style={"width": "130px"},
37
  )
38
 
39
  def controls(self) -> Any:
 
49
  self.dropdown("color", "Color", all_cols),
50
  self.dropdown("hover", "Hover", all_cols),
51
  ],
52
+ style={"display": "flex", "flexWrap": "wrap"},
53
  )
54
 
55
  def render(self, **kwargs: Any) -> Any:
src/ai_dashboard/plot_plugin/tsne.py CHANGED
@@ -1,5 +1,6 @@
1
  """PCA / t-SNE plot plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
 
@@ -33,9 +34,11 @@ class PCATSNEPlotPlugin(BasePlotPlugin):
33
  clearable=False,
34
  multi=multi,
35
  persistence=True,
 
 
36
  ),
37
  ],
38
- style={"width": "200px", "marginBottom": "10px"},
39
  )
40
 
41
  def controls(self) -> Any:
 
1
  """PCA / t-SNE plot plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
 
 
34
  clearable=False,
35
  multi=multi,
36
  persistence=True,
37
+ persistence_type="memory",
38
+ style={"color": "#000"},
39
  ),
40
  ],
41
+ style={"width": "130px"},
42
  )
43
 
44
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/violin_plot.py CHANGED
@@ -1,5 +1,6 @@
1
  """Violin Plot plugin"""
2
 
 
3
  from typing import Any, List
4
  import plotly.express as px
5
  from dash import html, dcc
@@ -24,9 +25,11 @@ class ViolinPlotPlugin(BasePlotPlugin):
24
  value=options[0],
25
  clearable=False,
26
  persistence=True,
 
 
27
  ),
28
  ],
29
- style={"width": "180px", "marginBottom": "10px"},
30
  )
31
 
32
  def controls(self) -> Any:
 
1
  """Violin Plot plugin"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import plotly.express as px
6
  from dash import html, dcc
 
25
  value=options[0],
26
  clearable=False,
27
  persistence=True,
28
+ persistence_type="memory",
29
+ style={"color": "#000"},
30
  ),
31
  ],
32
+ style={"width": "130px"},
33
  )
34
 
35
  def controls(self) -> Any:
src/ai_dashboard/plot_plugin/word_cloud.py CHANGED
@@ -1,5 +1,6 @@
1
  """Word Cloud plot plugin for AI-Dashboard"""
2
 
 
3
  from typing import Any, List
4
  import logging
5
  import io
@@ -30,9 +31,11 @@ class WordCloudPlotPlugin(BasePlotPlugin):
30
  value=options[0],
31
  clearable=False,
32
  persistence=True,
 
 
33
  ),
34
  ],
35
- style={"width": "220px", "marginBottom": "10px"},
36
  )
37
 
38
  def controls(self) -> Any:
 
1
  """Word Cloud plot plugin for AI-Dashboard"""
2
 
3
+ # pylint: disable=R0801
4
  from typing import Any, List
5
  import logging
6
  import io
 
31
  value=options[0],
32
  clearable=False,
33
  persistence=True,
34
+ persistence_type="memory",
35
+ style={"color": "#000"},
36
  ),
37
  ],
38
+ style={"width": "130px"},
39
  )
40
 
41
  def controls(self) -> Any: