py2ls 0.1.5.7__py3-none-any.whl → 0.1.5.8__py3-none-any.whl

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.
py2ls/ips.py CHANGED
@@ -2052,7 +2052,9 @@ def figsets(*args):
2052
2052
  # tick location
2053
2053
  if "tic" in key.lower() or "tk" in key.lower():
2054
2054
  if ("loc" in key.lower()) or ("po" in key.lower()):
2055
- if isinstance(value, (str, list)):
2055
+ if isinstance(value,str):
2056
+ value=[value]
2057
+ if isinstance(value, list):
2056
2058
  loc = []
2057
2059
  for i in value:
2058
2060
  if ("l" in i.lower()) and ("a" not in i.lower()):
@@ -2072,6 +2074,8 @@ def figsets(*args):
2072
2074
  ax.yaxis.set_ticks_position("none")
2073
2075
  # ticks / labels
2074
2076
  elif "x" in key.lower():
2077
+ if value is None:
2078
+ value=[]
2075
2079
  if "la" not in key.lower():
2076
2080
  ax.set_xticks(value)
2077
2081
  if "la" in key.lower():
py2ls/plot.py CHANGED
@@ -14,7 +14,7 @@ def stdshade(ax=None,*args, **kwargs):
14
14
  def str2list(str_):
15
15
  l = []
16
16
  [l.append(x) for x in str_]
17
- return l
17
+ return l
18
18
  def hue2rgb(hex_colors):
19
19
  def hex_to_rgb(hex_color):
20
20
  """Converts a hexadecimal color code to RGB values."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2ls
3
- Version: 0.1.5.7
3
+ Version: 0.1.5.8
4
4
  Summary: py(thon)2(too)ls
5
5
  Author: Jianfeng
6
6
  Author-email: Jianfeng.Liu0413@gmail.com
@@ -125,14 +125,14 @@ py2ls/data/db2ls_sql_chtsht.json,sha256=ls9d7Sm8TLeujanWHfHlWhU85Qz1KnAizO_9X3wU
125
125
  py2ls/data/lang_code_iso639.json,sha256=qZiU7H2RLJjDMXK22C-jhwzLJCI5vKmampjB1ys4ek4,2157
126
126
  py2ls/db2ls.py,sha256=MMfFX47aIPIyu7fU9aPvX9lbPRPYOpJ_VXwlnWk-8qo,13615
127
127
  py2ls/freqanalysis.py,sha256=F4218VSPbgL5tnngh6xNCYuNnfR-F_QjECUUxrPYZss,32594
128
- py2ls/ips.py,sha256=xyWKqnLN2PFgAFupzzTykbU-EF2tp3rRCj6j8xpCDOM,96822
128
+ py2ls/ips.py,sha256=LFdQ7xb8cjowb99C80ypF4w5mH-GFenAKOrUjb55YFQ,96954
129
129
  py2ls/netfinder.py,sha256=ZsLWGYMeRuGvxj2nqE0Z8ANoaVl18Necfw0HQfh2q7I,45548
130
- py2ls/plot.py,sha256=EbRx_6RuYT1EqDoi_01E6UbO6YPMXQJy83SuKqiOgto,7696
130
+ py2ls/plot.py,sha256=4dxZsE2Ir7faNlKbRHLT2aEL5xEYGu1ENlWhIuFH9zE,7700
131
131
  py2ls/setuptools-70.1.0-py3-none-any.whl,sha256=2bi3cUVal8ip86s0SOvgspteEF8SKLukECi-EWmFomc,882588
132
132
  py2ls/sleep_events_detectors.py,sha256=36MCuRrpurn0Uvzpo3p3b3_JlVsRNHSWCXbJxCGM3mg,51546
133
133
  py2ls/stats.py,sha256=Wd9yCKQ_61QD29WMEgMuEcreFxF91NmlPW65iWT2B5w,39041
134
134
  py2ls/translator.py,sha256=6S7MmTZmjj8NljVmj0W5uEauu4ePxso3AMf2LvGVRQA,30516
135
135
  py2ls/wb_detector.py,sha256=7y6TmBUj9exCZeIgBAJ_9hwuhkDh1x_-yg4dvNY1_GQ,6284
136
- py2ls-0.1.5.7.dist-info/METADATA,sha256=vUwZ_D3iMt___SHaEdzoR1q0l0h0_qknuh-IFAiHoUQ,17943
137
- py2ls-0.1.5.7.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
138
- py2ls-0.1.5.7.dist-info/RECORD,,
136
+ py2ls-0.1.5.8.dist-info/METADATA,sha256=8Hu8LqDOHQ5_OEoHl5EubNAvkMiLeI_Y1GurfdFxevg,17943
137
+ py2ls-0.1.5.8.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
138
+ py2ls-0.1.5.8.dist-info/RECORD,,