Hi All:
I just use pyGMT to plot the error bar, but the error bar scale displays inconsistently.
Please help me to adjust the error bar scale and to use “incols” for choosing the “symbol size”.
Many thanks!
title = “Profile”
fig.basemap(
region=“0/23.3893101429/0/15”,
projection=“X5i/-2.2i”,
frame=[“a”, f’WSne+t"{title}“', 'xa2f1+l"Distance (km)”', ‘yaf+l"Focal depth(km)"’],
)
plot data
data = pd.read_csv(“error_bar.txt”)
df = pd.DataFrame(
data ={
“x”: data[‘x’],
“y”:data[‘x’],
“x_error”: data[‘x_error’],
“y_error”: data[‘y_error’],
“Mag”:data[‘Mag’],
}
)
fig.plot(
data=df1,
error_bar = True,
pen = “0.2p”,
)
fig.show()
Here are input file and plotting result:
error_bar.txt (346 Bytes)