You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably for nice plotting people will use dedicated tool (matplotlib, gnuplot, ...). The main purpose of this plot module should be for debugging in my opinion:
real time plotting: when the xrange and yrange are unknown, be able to adapt accordingly
save data in a text file to easily plot with another tool: in row, the data at time t, in column the data (xdata, ydata, ...)
Example code to import the data (here the text file is [x1,y1,z1], [x2,y2,z2], [x3,y3,z3], 3 curves, the zdata is not used):
import numpy as np
import matplotlib.pyplot as plt
data = np.loadtxt('pose_info.txt', skiprows=1)
fig = plt.figure()
for i in xrange(0, data.shape[1], 3):
plt.plot(data[:,i], data[:,i+1])
plt.show()
i can try to help @leonardvandriel about contributing his framework to OpenCV if it will be useful. @vpisarev@alalek Could you share your opinion on this subject
test code
1
output plot0 (PlotSize is 600x400 default)
output plot1 (PlotSize is 500x500)
![plot1](https://user-images.githubusercontent.com/12151541/28777631-b34281ac-7604-11e7-990b-bb166bdb6a42.png)
two graphs with same data and different size. i think there is a problem to be solved.
2
actually by setting
![plot2](https://user-images.githubusercontent.com/12151541/28780858-eb5953b6-7610-11e7-9a06-3fbc8aac19a0.png)
PlotGridColor
,PlotTextColor
etc. you can do some customization on display likeprobably adding some more functions to customization like
setShowGrid()
,setShowText()
etc. will be fineThe text was updated successfully, but these errors were encountered: