# How to plot data from PX4 firmware v1.12.3

**URL:** <https://discuss.px4.io/t/how-to-plot-data-from-px4-firmware-v1-12-3/32945>\
**Category:** PX4 Autopilot\
**Created:** [June 27, 2023, 4:47pm UTC](https://discuss.px4.io/t/how-to-plot-data-from-px4-firmware-v1-12-3/32945 "2023-06-27T16:47:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo\_Mennea](https://discuss.px4.io/user_avatar/discuss.px4.io/matteo_mennea/32/13205_2.png) [@Matteo\_Mennea](https://discuss.px4.io/u/Matteo_Mennea)\
**Post date:** [June 27, 2023, 4:47pm UTC](https://discuss.px4.io/t/how-to-plot-data-from-px4-firmware-v1-12-3/32945/1 "2023-06-27T16:47:47Z")

</div>

I’m performing code generation with Simulink with the PX4 tool chain add-on( [UAV Toolbox Support Package for PX4 Autopilots - MATLAB & Simulink - MathWorks Italia](https://it.mathworks.com/help/supportpkg/px4/index.html?s_tid=CRUX_lftnav) ). I have a problem. When I press “Build, deploy and run” Simulink performs code generation, build the code and the launch it, simulating on jMAVsim , till now everything works. But how can I receive and plot the data from the drone (e.g. position,velocities, acceleration, Euler Angles and its derivatives etc… ). Are there any tools to plot this data ?

---

<div class="post-metadata">

**Author:** ![rroche](https://discuss.px4.io/user_avatar/discuss.px4.io/rroche/32/17635_2.png) [@rroche](https://discuss.px4.io/u/rroche)\
**Post date:** [June 27, 2023, 5:00pm UTC](https://discuss.px4.io/t/how-to-plot-data-from-px4-firmware-v1-12-3/32945/2 "2023-06-27T17:00:45Z")

</div>

hi @Matteo_Mennea thanks for posting and I hope you are having fun with PX4.

Everytime you launch the simulation it creates a log that you should be able to see in [our online viewer](https://docs.px4.io/main/en/log/flight_review.html) or using another plotting tool offline we recommend [PlotJugger](https://docs.px4.io/main/en/log/plotjuggler_log_analysis.html#log-analysis-using-plotjuggler). Alternatively if your needs are too specific you can take advantage of the pyulog python package [see more info here](https://docs.px4.io/main/en/log/flight_review.html).

if you like my answer please help us by marking it as the recommended solution!

---

<div class="post-metadata">

**Author:** ![Matteo\_Mennea](https://discuss.px4.io/user_avatar/discuss.px4.io/matteo_mennea/32/13205_2.png) [@Matteo\_Mennea](https://discuss.px4.io/u/Matteo_Mennea)\
**Post date:** [June 28, 2023, 9:40am UTC](https://discuss.px4.io/t/how-to-plot-data-from-px4-firmware-v1-12-3/32945/3 "2023-06-28T09:40:49Z")

</div>

Thank you for your reply. When I perform simulation with jmavsim, it creates a lot of log files. Why? What file should I take? Is it possible to create just one .ulg file for simualtion?
