I have a subplot, its x-axis label uses voltages, its csv data column values increase from 0 to 30 and then decrease from 30 to 0. when I use this code it gives me this plot
ax2.plot(df_raw.index, df_raw.loc[:,"data_column"])
When I use below code I got the plot as as shown below
ax2.plot(df_raw.loc[:,"voltage"], df_raw.loc[:,"data_column"])
What I really want is as shown below
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.