Question #706106 on Yade changed: https://answers.launchpad.net/yade/+question/706106
alaia woods posted a new comment: To plot the results from a file and compare them with DEM (Discrete Element Method) simulations in real-time, you can follow these steps: Load the data from your file: You'll need to determine the format of your data file (e.g., CSV, TXT) and use appropriate libraries or functions to read the data into your program. For example<a href="https://laptopspapa.com/">,</a> if you're using Python, you can use libraries like NumPy or Pandas to load and manipulate the data. Prepare the data for comparison: Depending on the structure of your data, you may need to preprocess or reformat it to align with the DEM simulation data. This may involve organizing the data into appropriate variables or arrays. Plot the data: Utilize a plotting library such as Matplotlib or Plotly to visualize the loaded data. These libraries provide a range of functions and customization options for creating plots, such as line plots, scatter plots, or 3D plots. You can plot the loaded data alongside the DEM simulation results to compare them in real-time. Update the plot in real-time: If you want to continuously compare the loaded data with the evolving DEM simulation, you'll need to update the plot dynamically. This can be achieved by periodically loading new data from the file and updating the plot accordingly. You may need to incorporate a loop or an event-driven approach to enable real-time updates -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp