Is Mathematica capable of producing 2d contour plots from .txt files?

 Is Mathematica capable of producing 2d contour plots from .txt files?

I have a text file that contains five columns of data in which columns 1 and 2 correspond to projected distance along dimension 1 and 2 and then columns 3, 4 and 5 are values of an arbitrary function in projections 0 “z”, 1 “x” and 2 “y” respectively. I would like to transform this.txt table into actual 2d maps in which the color strength of each pixel would correspond to the magnitude of the function in that pixel. This means that I would have three planes xy, yz and xz in which each pixel is filled with a color. Let’s say if the function value is smaller than 1, the color should be LightRed, if the function value is between 1 and 2, the color should be Red, and if the function value is larger than 2, the color should be DarkRed. In other words, my 2d map is in fact a set of 3 contour plots that are produced out of .txt table. I am searching this website and internet in general to see if there are any examples in mathematica. As of now, this is the only example provided: How to extract data from contour plot as a text file?

But what I need is actually the opposite (to convert a table into 2d contours). My concern is just too broad and I don’t know how to start. What makes the situation even worse is that my table is really a huge one (on the order of few megabites). Can someone give me an idea of how to approach the problem in mathematica or should I be looking at something else like Python codes that are already written for that purpose?

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange