• 再次测试用OLW本地的桌面应用撰写博客园博文


    为什么看不到我发布的博文?

    我现在是用刚刚安装好的Open Live Writer, 为自己的博客园撰写博文.  刚才测试发布了一篇. 不知怎么搞得, 发布成了日记.

    博客园里的日记, 文章和随笔是不同的分类.  随笔就是通常说的博文.  日记在博文里看不到的 . 

    关闭/退出软件后, 再次启动, 再发布一篇试一试.

    可以发布随笔了!

    奥! 这次可以看到博文了.  那就是说可以发布博文到博客园了.

    插入图片试一试:

    - 点击 Insert菜单/Picture图标/from your computer选项

    - 弹出窗口: 选择图片文件

    360截图20190828232857000-华侨城2014年行情

    360截图20190828232857000-华侨城2017年行情

    360截图20190828232857000-华侨城2019q1年行情

    引用块

    这是引用块. 对吗? 用双引号围起来的文本.   或者套用段落里的双引号格式的文本块.  

      

    插入代码块, 试一试:

    ```python

    def _candlestick(ax, quotes, width=0.2, colorup='r', colordown='k',
                      alpha=1.0, ochl=True):
         """
         Plot the time, open, high, low, close as a vertical line ranging
         from low to high.  Use a rectangular bar to represent the
         open-close span.  If close >= open, use colorup to color the bar,
         otherwise use colordown

        Parameters
         ----------
         ax : `Axes`
             an Axes instance to plot to
         quotes : sequence of quote sequences
             data to plot.  time must be in float date format - see date2num
             (time, open, high, low, close, ...) vs
             (time, open, close, high, low, ...)
             set by `ochl`
         width : float
             fraction of a day for the rectangle width
         colorup : color
             the color of the rectangle where close >= open
         colordown : color
              the color of the rectangle where close <  open
         alpha : float
             the rectangle alpha level
         ochl: bool
             argument to select between ochl and ohlc ordering of quotes

        Returns
         -------
         ret : tuple
             returns (lines, patches) where lines is a list of lines
             added and patches is a list of the rectangle patches added

        """

        OFFSET = width / 2.0

        lines = []
         patches = []
         for q in quotes:
             if ochl:
                 t, open, close, high, low = q[:5]
             else:
                 t, open, high, low, close = q[:5]

            if close >= open:
                 color = colorup
                 lower = open
                 height = close - open
             else:
                 color = colordown; type(color)
                 lower = close
                 height = open - close

            if close>=open:
                 vline1 = plt.Line2D(
                     xdata=(t, t), ydata=(low, open)  ,
                     color='k', #color,
                     linewidth=0.5,
                     antialiased=True,
                 )
                 ax.add_line(vline1)
                 lines.append(vline1)
                
                 vline2 = plt.Line2D(
                     xdata=(t, t), ydata=(close, high)  ,
                     color='k',   #color,
                     linewidth=0.5,
                     antialiased=True,
                 )
                 ax.add_line(vline2)
                 lines.append(vline2)
            
             else:
                 vline3 = plt.Line2D(
                     xdata=(t, t), ydata=(low, high)  ,
                     color='k',   #color,
                     linewidth=0.5,
                     antialiased=True,
                 )
                 ax.add_line(vline3)
                 lines.append(vline3)
                

            rect = plt.Rectangle(
                 xy=(t - OFFSET, lower),
                 width=width,
                 height=height,
                 facecolor='w' if close>open else 'k', #color,
                 edgecolor='k', #color,
                 linewidth=0.5,
             )
             rect.set_alpha(alpha)
             ax.add_patch(rect)

            patches.append(rect)
         ax.autoscale_view()

        return lines, patches

    ```

  • 相关阅读:
    初学java
    位操作运算符的最好的解释
    C++手机通讯录排序
    删除TFS项目上的文件
    单元测试中方法运行测试和调试测试不起作用原因
    EF-CodeFirst系列100
    NPOI-Excel系列-1002.创建带有Document Summary Information和Summary Information的Excel文件
    NPOI-Excel系列-1000.创建一个标准的Excel文件
    T4模板批量生成代码文件
    WebService返回json格式数据供苹果或者安卓程序调用
  • 原文地址:https://www.cnblogs.com/duan-qs/p/11451715.html
Copyright © 2020-2023  润新知