siat 1.7.48__py3-none-any.whl → 1.7.49__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.
siat/markowitz.py CHANGED
@@ -2117,7 +2117,7 @@ def security_correlation(tickers,start,end,info_type='Close'):
2117
2117
  im1 = sns.heatmap(df_coor,annot=True,cmap="YlGnBu"
2118
2118
  , mask=mask#构造mask,去除重复数据显示
2119
2119
  ,vmax=1,vmin=-1
2120
- , fmt='.2f',ax = ax1,annot_kws={"size": 8})
2120
+ , fmt='.2f',ax = ax1,annot_kws={"size": 6})
2121
2121
 
2122
2122
  ax1.tick_params(axis = 'both', length=0)
2123
2123
 
@@ -2138,6 +2138,9 @@ def security_correlation(tickers,start,end,info_type='Close'):
2138
2138
  widthx = 0
2139
2139
  widthy = -0.15
2140
2140
 
2141
+ # 星号的大小
2142
+ font_dict={'size':5}
2143
+
2141
2144
  for m in ax1.get_xticks():
2142
2145
  for n in ax1.get_yticks():
2143
2146
  pv = (parr[int(m),int(n)])
@@ -2145,22 +2148,22 @@ def security_correlation(tickers,start,end,info_type='Close'):
2145
2148
  if mask2[int(m),int(n)]<1.:
2146
2149
  if abs(rv) > 0.5:
2147
2150
  if pv< 0.05 and pv>= 0.01:
2148
- ax1.text(n+widthx,m+widthy,'*',ha = 'center',color = 'white')
2151
+ ax1.text(n+widthx,m+widthy,'*',ha = 'center',color = 'white',fontdict=font_dict)
2149
2152
  if pv< 0.01 and pv>= 0.001:
2150
- ax1.text(n+widthx,m+widthy,'**',ha = 'center',color = 'white')
2153
+ ax1.text(n+widthx,m+widthy,'**',ha = 'center',color = 'white',fontdict=font_dict)
2151
2154
  if pv< 0.001:
2152
2155
  #print([int(m),int(n)])
2153
- ax1.text(n+widthx,m+widthy,'***',ha = 'center',color = 'white')
2156
+ ax1.text(n+widthx,m+widthy,'***',ha = 'center',color = 'white',fontdict=font_dict)
2154
2157
  else:
2155
2158
  if pv< 0.05 and pv>= 0.01:
2156
- ax1.text(n+widthx,m+widthy,'*',ha = 'center',color = 'k')
2159
+ ax1.text(n+widthx,m+widthy,'*',ha = 'center',color = 'k',fontdict=font_dict)
2157
2160
  elif pv< 0.01 and pv>= 0.001:
2158
- ax1.text(n+widthx,m+widthy,'**',ha = 'center',color = 'k')
2161
+ ax1.text(n+widthx,m+widthy,'**',ha = 'center',color = 'k',fontdict=font_dict)
2159
2162
  elif pv< 0.001:
2160
- ax1.text(n+widthx,m+widthy,'***',ha = 'center',color = 'k')
2163
+ ax1.text(n+widthx,m+widthy,'***',ha = 'center',color = 'k',fontdict=font_dict)
2161
2164
 
2162
2165
  plt.title("证券"+info_type_cn+"之间的相关性")
2163
- plt.tick_params(labelsize=8)
2166
+ plt.tick_params(labelsize=6)
2164
2167
 
2165
2168
  footnote1="\n显著性数值:***非常显著(<0.001),**很显著(<0.01),*显著(<0.05),其余为不显著"
2166
2169
  footnote2="\n系数绝对值:>=0.8极强相关,0.6-0.8强相关,0.4-0.6相关,0.2-0.4弱相关,否则为极弱(不)相关"
@@ -2169,7 +2172,7 @@ def security_correlation(tickers,start,end,info_type='Close'):
2169
2172
  import datetime as dt; stoday=dt.date.today()
2170
2173
  footnote4=";来源:Sina/EM/stooq/Yahoo,"+str(stoday)
2171
2174
 
2172
- fontxlabel={'size':7}
2175
+ fontxlabel={'size':6}
2173
2176
  plt.xlabel(footnote1+footnote2+footnote3+footnote4,fontxlabel)
2174
2177
  #plt.xticks(rotation=45)
2175
2178
  plt.show()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 1.7.48
3
+ Version: 1.7.49
4
4
  Summary: Securities Investment Analysis Tools (siat)
5
5
  Home-page: https://pypi.org/project/siat/
6
6
  Author: Prof. WANG Dehong, Business School, BFSU (北京外国语大学 国际商学院 王德宏 教授)
@@ -53,7 +53,7 @@ siat/holding_risk.py,sha256=108tiI7DDl8uUZkyUiq6Y-McKeim1mxYsgqgk7CcXw8,30544
53
53
  siat/holding_risk_test.py,sha256=FRlw_9wFG98BYcg_cSj95HX5WZ1TvkGaOUdXD7-V86s,474
54
54
  siat/local_debug_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
55
55
  siat/market_china.py,sha256=2_ov1KQwRtHQ6PXNO1TS4-wUPhBuoWla326g0x_xUgQ,31158
56
- siat/markowitz.py,sha256=t3FDfiYK7gj7fVpOuy_MbpLCYebOsEvhotnx0LoBIkY,91175
56
+ siat/markowitz.py,sha256=sIgfOUkD23CxKgEfBL9sidzpa36De49ufNd2XdrWdpQ,91344
57
57
  siat/markowitz_ccb_test.py,sha256=xBkkoaNHdq9KSUrNuHGgKTdNYUvgi84kNYcf719eoyE,1593
58
58
  siat/markowitz_ef_test.py,sha256=wjNlICkgRIqnonPeSIHo4Mu2GRtb9dr21wDt2kMNEcI,4032
59
59
  siat/markowitz_old.py,sha256=Lf7O_4QWT8RsdkHiUyc_7kKY3eZjKDtFR89Fz3pwYnY,33046
@@ -104,7 +104,7 @@ siat/universal_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
104
104
  siat/valuation_china.py,sha256=U9FQgFcbJcS-S0cwy8iJ9Z0Rf8sxCN5Pxhm1DItUUgQ,51206
105
105
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
106
106
  siat/var_model_validation.py,sha256=zB_Skk_tmzIR15l6oAW3am4HBGVIG-eZ8gJhCdXZ8Qw,14859
107
- siat-1.7.48.dist-info/METADATA,sha256=rATsp778G1p0s_6aGlLe_DAiFIfsCfPOjg13q8uNvwU,1400
108
- siat-1.7.48.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
109
- siat-1.7.48.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
110
- siat-1.7.48.dist-info/RECORD,,
107
+ siat-1.7.49.dist-info/METADATA,sha256=X2D3EGkVuQ5cx9rdtAx0Ipu74S_VraqWUmrUCP-bDNw,1400
108
+ siat-1.7.49.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
109
+ siat-1.7.49.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
110
+ siat-1.7.49.dist-info/RECORD,,
File without changes