'How can I transform a large matrix to a chart with the x and y axis values as columns?

This is an example of what I would like to achieve



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source