• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Compare two arrays on a graph

Resolved: Compare two arrays on a graph

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have two two-dimensional arrays with data, these arrays have the same dimension. Arrays are saved to a file .CSV
Example of an array:
enter image description here
delimiter – ;
Could you tell me please, how can I use some graph to show the difference between these two arrays? You can offer any type of chart. I would like something like 3D graphics.
thank you very much!

Answer:

I don’t think a 3D scatterplot will help you to see the difference between the two data files, but if you nevertheless want to show the data in a scatterplot you can do it as follows:
enter image description here
However, as I wrote in the comment above, I’d recommend using matshow with a diverging colormap to show the difference of the two arrays:
enter image description here
Or, if you don’t like differences, you can show both arrays side by side:
enter image description here
Update as requested in comments below:
  1. a1 and a2 in one plot with different colors

  1. a1 and a2 in two wireframe plots

  1. a1 and a2 in one wireframe plot

If you have better answer, please add a comment about this, thank you!

arrays matplotlib python-3.x
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Unable to run Docker .NET 6 console image

02/04/2023

Resolved: Input Focus between two React Components

02/04/2023

Resolved: linq2db throws exception when filtering by nested collection

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.