10-10-2017 07:49 AM
Hello,
Does anyone know how to make a plot where the x-axis is periodic and not always increasing, but the data is not overlapping? For example, imagine a test with a pendulum that is going from -30 degrees to 30 degrees and you're measuring the force as a function of angle over several oscillations. I've made some example data:
angle = [-30,-20,-10,0,10,20,30,20,10,0,-10,-20,-30,-20,-10,0,10,20,30,20,10,0,-10,-20,-30]
Force = [1.21,1.26,1.31,1.46,1.4,1.25,1.14,1.21,1.33,1.37,1.30,1.22,1.19,1.26,1.31,1.48,1.4,1.31,1.2,1.27,1.33,1.39,1.26,1.19,1.16]
I'm making my plots on Excel and Paint to demonstrate what I want. The first plot is just plotting everything with angle as the x-axis and force as y-axis. This has the forces overlapping and you cannot tell which oscillation each line is. I know I can make each oscillation a different color and label them, but I want to see them continuously. I also considered just making the x-axis a time series or sample number series, but that is not what I want either. The trouble is with having the x-axis being periodic and going from -30 to 30 then back down to -30.
I can plot angle and force separately as in the second plot but this is more complex than I want visually. I made a drawing of what I want in the third plot. I was thinking about having if there is a way to plot the Force vs sample number then just relabel the x-axis with what samples are different angles, but I'm not sure if there is a way to do this in DIAdem.
10-11-2017 07:38 PM
Hey TheStrangeQuark,
I was looking into this this afternoon and couldn't figure out a full solution on DIAdem but here's the thoughts that I have.
1) You could plot on a 3D axis and just turn to the Axis that makes the most sense, For example probably plot time/sample number vs. force vs. angle and then we could kinda of see that unraveling as a function of time/sample number.
2) You could also make sort of a math channel and add you degrees with another function such that you can see the force over the degrees for each period. I couldn't figure out 100% what kinda function that would look like.
Hopefully this gives you kinda of a start on how you might implement this!