0
$\begingroup$

This question already has an answer here:

I'm a beginner. How I make a 3D Plot from zero? (like a graphics with the potencial of the electric field). I have to make vector fields too. (vectors of the electric field). I search at internet but I don't understand, I need help.

data = Import["/Volumes/CARMEN/teste.txt"];
SetOptions[{ListContourPlot, ListPlot3D}, ImageSize -> 300];
{ListContourPlot[data, FrameStyle -> Directive[Black, 14], 
ContourLines -> True, Contours -> 20, AspectRatio -> Full, 
ColorFunction -> "TemperatureMap", FrameLabel -> {"x", "y"}], 
ListPlot3D[data, BaseStyle -> {FontSize -> 14}, Mesh -> None, 
InterpolationOrder -> 3, ColorFunction -> "SouthwestColors", 
BoxRatios -> Automatic]}

Why the graphics don't appear?

$\endgroup$

marked as duplicate by Jens, Öskå, m_goldberg, MarcoB, user9660 May 16 '16 at 4:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ @Jens What is wrong with the code? The graphics don't appear. data = Import["/Volumes/CARMEN/teste.txt"]; SetOptions[{ListContourPlot, ListPlot3D}, ImageSize -> 300]; {ListContourPlot[data, FrameStyle -> Directive[Black, 14], ContourLines -> True, Contours -> 20, AspectRatio -> Full, ColorFunction -> "TemperatureMap", FrameLabel -> {"x", "y"}], ListPlot3D[data, BaseStyle -> {FontSize -> 14}, Mesh -> None, InterpolationOrder -> 3, ColorFunction -> "SouthwestColors", BoxRatios -> Automatic]} $\endgroup$ – Carmen González May 15 '16 at 20:08
  • $\begingroup$ @Jens Only appear numbers like a table. $\endgroup$ – Carmen González May 15 '16 at 20:09
  • $\begingroup$ It's impossible to say without having the data file. To get an answer, please provide a minimal working example for data. It probably has the wrong format. I guess it's supposed to contain the potential. $\endgroup$ – Jens May 15 '16 at 20:21
  • $\begingroup$ @Jens dropbox.com/sh/4adlm8h8l9oqlog/AADF0fapg2KNlvf9z09WBUwda?dl=0 $\endgroup$ – Carmen González May 15 '16 at 20:24
  • $\begingroup$ @Jens In this link, I put the data. $\endgroup$ – Carmen González May 15 '16 at 20:24