imsciences 1.0.1__tar.gz → 1.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imsciences
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: IMS Data Processing Package
5
5
  Author: IMS
6
6
  Author-email: cam@im-sciences.com
@@ -51,7 +51,7 @@ class datavis:
51
51
  "font_size": 10,
52
52
  },
53
53
  }
54
- self.current_theme = "dark"
54
+ self.current_theme = "default"
55
55
 
56
56
  def help(self, method=None, *, show_examples=True):
57
57
  """
@@ -546,7 +546,7 @@ class datavis:
546
546
 
547
547
  return fig
548
548
 
549
- def plot_two(self, data_config, *, same_axis=True):
549
+ def plot_two(self, data_config, *, same_axis=True, title="Comparison Plot"):
550
550
  """
551
551
  Plots specified columns from two different DataFrames with themed styling.
552
552
 
@@ -556,6 +556,8 @@ class datavis:
556
556
  Dictionary with keys: 'df1', 'col1', 'df2', 'col2', 'date_column'
557
557
  same_axis : bool, default True
558
558
  If True, plot both traces on the same y-axis; otherwise, use separate y-axes
559
+ title : str, default "Comparison Plot"
560
+ Custom title for the plot
559
561
 
560
562
  Returns
561
563
  -------
@@ -636,7 +638,18 @@ class datavis:
636
638
  }
637
639
  )
638
640
 
639
- fig.update_layout(title="Comparison Plot", showlegend=True)
641
+ # Update layout with custom title and legend positioning
642
+ fig.update_layout(
643
+ title=title,
644
+ showlegend=True,
645
+ legend={
646
+ "orientation": "h",
647
+ "yanchor": "bottom",
648
+ "y": 1.02,
649
+ "xanchor": "center",
650
+ "x": 0.5
651
+ }
652
+ )
640
653
 
641
654
  return fig
642
655
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imsciences
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: IMS Data Processing Package
5
5
  Author: IMS
6
6
  Author-email: cam@im-sciences.com
@@ -22,7 +22,7 @@ def get_version():
22
22
  for line in f:
23
23
  if line.startswith("__version__"):
24
24
  return line.split("=")[1].strip().strip('"').strip("'")
25
- return "1.0.0" # Start from 1.0.0 instead of 0.0.0
25
+ return "1.0.1" # Start from 1.0.0 instead of 0.0.0
26
26
 
27
27
 
28
28
  def increment_version():
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes