日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > python >内容正文

python

python无符号转有符号_Python | 散布符号

發(fā)布時間:2025/3/11 python 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python无符号转有符号_Python | 散布符号 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

python無符號轉(zhuǎn)有符號

There are multiple types of Scatter Symbols available in the matplotlib package and can be accessed through the command marker. In this article, we will show some examples of different marker types and also present a list containing all the markers as defined by matplotlib.

matplotlib軟件包中有多種類型的散布符號 ,可以通過命令標(biāo)記進(jìn)行訪問。 在本文中,我們將顯示一些不同標(biāo)記類型的示例,并提供一個包含由matplotlib定義的所有標(biāo)記的列表。

Available Markers:

可用標(biāo)記:

markers = {'.': 'point', ',': 'pixel', 'o': 'circle', 'v': 'triangle_down', '^': 'triangle_up', '': 'triangle_right', '1': 'tri_down', '2': 'tri_up', '3': 'tri_left', '4': 'tri_right', '8': 'octagon', 's': 'square', 'p': 'pentagon', '*': 'star', 'h': 'hexagon1', 'H': 'hexagon2', '+': 'plus', 'x': 'x', 'D': 'diamond', 'd': 'thin_diamond', '|': 'vline', '_': 'hline', 'P': 'plus_filled', 'X': 'x_filled', 0: 'tickleft', 1: 'tickright', 2: 'tickup', 3: 'tickdown', 4: 'caretleft', 5: 'caretright', 6: 'caretup', 7: 'caretdown', 8: 'caretleftbase', 9: 'caretrightbase', 10: 'caretupbase', 11: 'caretdownbase', 'None': 'nothing', None: 'nothing', ' ': 'nothing', '': 'nothing'}

Reference: matplotlib.markers.MarkerStyle

參考: matplotlib.markers.MarkerStyle

散點符號的Python代碼 (Python code for scatter symbol)

import matplotlib.pyplot as plt import numpy as npx = np.arange(0.0, 50.0, 2.0) y = x ** 1.3 + np.random.rand(*x.shape) * 30.0 s = np.random.rand(*x.shape) * 300 + 500plt.figure() plt.scatter(x, y, s, c="y", alpha=0.7, marker='X',label="Gold Mark") plt.xlabel("Years") plt.ylabel("Gold") plt.title('Scatter Plot: Marker') plt.legend() plt.show()plt.figure() plt.scatter(x, y, s, c="b", alpha=0.5, marker='<',label="Gold Mark") plt.xlabel("Years") plt.ylabel("Gold") plt.title('Scatter Plot: Marker') plt.legend() plt.show()plt.figure() plt.scatter(x, y, s, c="g", alpha=0.5, marker='^',label="Gold Mark") plt.xlabel("Years") plt.ylabel("Gold") plt.title('Scatter Plot: Marker') plt.legend() plt.show()plt.figure() plt.scatter(x, y, s, c="r", alpha=0.5, marker='8',label="Gold Mark") plt.xlabel("Years") plt.ylabel("Gold") plt.title('Scatter Plot: Marker') plt.legend() plt.show()plt.figure() plt.scatter(x, y, s, c="g", alpha=0.5, marker='p',label="Gold Mark") plt.xlabel("Years") plt.ylabel("Gold") plt.title('Scatter Plot: Marker') plt.legend() plt.show()

Output:

輸出:

Output is as figure

翻譯自: https://www.includehelp.com/python/scatter-symbol.aspx

python無符號轉(zhuǎn)有符號

總結(jié)

以上是生活随笔為你收集整理的python无符号转有符号_Python | 散布符号的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。