Plotting a 3D data-set from a .csv file











up vote
3
down vote

favorite












I have a .csv with 2-dimensional data. Now I am trying to plot it in different index ranging from -n:1:n (this index is y-axis).



documentclass[border=10pt]{standalone}
usepackage{pgfplots}
pgfplotsset{width=7cm,compat=1.8}
usepackage{pgfplotstable}
begin{document}
begin{tikzpicture}

pgfplotstableread{
T3,v11
0,0.66582
0.000125,0.66582
0.00025,0.66582
0.000375,0.66582
0.0005,0.66582
0.000625,0.66582
0.00075,0.66582
0.000875,0.66582
0.001,0.66582
0.001125,0.66582
}dummydata
begin{axis}[
domain=-4:4,
samples y=0, ytick={1,...,4},
]
{
addplot3 table [x =T3, y expr=1, z=v11, col sep = comma]
{dummydata};
}
end{axis}
end{tikzpicture}
end{document}


This throws errors like:




! Package pgfplots Error: The requested list entry with index 1 of
dummydata i s too large; this list has not enough elements..



See the pgfplots package documentation for explanation. Type H
for immediate help. ...



                                               l.27       {dummydata};
This error message was generated by an errmessage command, so I can't give any explicit help. Pretend that


you're Hercule Poirot: Examine all clues, and deduce the truth by
order and method.



! Package pgfplots Error: Sorry, could not retrieve column 'T3' from
table ''. Please check spelling (or introduce name
aliases)..



See the pgfplots package documentation for explanation. Type H
for immediate help. ...



                                               l.27       {dummydata};
(That was another errmessage.)


! Package pgfplots Error: Sorry, could not retrieve column 'v11' from
table ''. Please check spelling (or introduce name
aliases)..



See the pgfplots package documentation for explanation. Type H
for immediate help. ...



                                               l.27       {dummydata};
(That was another errmessage.)


Package pgfplots Warning: the current plot has no coordinates (or all
have been filtered away) on input line 27.



[warning /pgfplots/warning/plot without coordinates]



Package pgfplots Warning: You have an axis with empty range (in
direction z). R eplacing it with a default range and clearing all
plots. on input line 29.



[warning /pgfplots/warning/empty range cleared axis] LaTeX Font Info:
External font cmex10' loaded for size (Font) <7> on
input line 29. LaTeX Font Info: External font
cmex10' loaded for
size (Font) <5> on input line 29.




However, instead of using a .csv format, if I stick with a table format (that is removing a comma between the data and also col sep = comma in the plot, then I get what I desired. However, the data I have is in .csv format (pretty big). So, instead of creating a huge data-set for y-axis, how can I achieve it with the above-mentioned script.



The one that works without a .csv format (and without creating a huge data-set for a different axis per-se):



documentclass[border=10pt]{standalone}
usepackage{pgfplots}
pgfplotsset{width=7cm,compat=1.8}
usepackage{pgfplotstable}
begin{document}
begin{tikzpicture}

pgfplotstableread{
T3 v11
0 0.66582
0.000125 0.66582
0.00025 0.66582
0.000375 0.66582
0.0005 0.66582
0.000625 0.66582
0.00075 0.66582
0.000875 0.66582
0.001 0.66582
0.001125 0.66582
}dummydata
begin{axis}[
domain=-4:4,
samples y=0, ytick={1,...,4},
]
{
addplot3 table [x =T3, y expr=1, z=v11]
{dummydata};
}
end{axis}
end{tikzpicture}
end{document}


which would give me the desired output:



enter image description here




PS: This is just an example, in reality I use the external file to import my data for plotting purposes.











share|improve this question




























    up vote
    3
    down vote

    favorite












    I have a .csv with 2-dimensional data. Now I am trying to plot it in different index ranging from -n:1:n (this index is y-axis).



    documentclass[border=10pt]{standalone}
    usepackage{pgfplots}
    pgfplotsset{width=7cm,compat=1.8}
    usepackage{pgfplotstable}
    begin{document}
    begin{tikzpicture}

    pgfplotstableread{
    T3,v11
    0,0.66582
    0.000125,0.66582
    0.00025,0.66582
    0.000375,0.66582
    0.0005,0.66582
    0.000625,0.66582
    0.00075,0.66582
    0.000875,0.66582
    0.001,0.66582
    0.001125,0.66582
    }dummydata
    begin{axis}[
    domain=-4:4,
    samples y=0, ytick={1,...,4},
    ]
    {
    addplot3 table [x =T3, y expr=1, z=v11, col sep = comma]
    {dummydata};
    }
    end{axis}
    end{tikzpicture}
    end{document}


    This throws errors like:




    ! Package pgfplots Error: The requested list entry with index 1 of
    dummydata i s too large; this list has not enough elements..



    See the pgfplots package documentation for explanation. Type H
    for immediate help. ...



                                                   l.27       {dummydata};
    This error message was generated by an errmessage command, so I can't give any explicit help. Pretend that


    you're Hercule Poirot: Examine all clues, and deduce the truth by
    order and method.



    ! Package pgfplots Error: Sorry, could not retrieve column 'T3' from
    table ''. Please check spelling (or introduce name
    aliases)..



    See the pgfplots package documentation for explanation. Type H
    for immediate help. ...



                                                   l.27       {dummydata};
    (That was another errmessage.)


    ! Package pgfplots Error: Sorry, could not retrieve column 'v11' from
    table ''. Please check spelling (or introduce name
    aliases)..



    See the pgfplots package documentation for explanation. Type H
    for immediate help. ...



                                                   l.27       {dummydata};
    (That was another errmessage.)


    Package pgfplots Warning: the current plot has no coordinates (or all
    have been filtered away) on input line 27.



    [warning /pgfplots/warning/plot without coordinates]



    Package pgfplots Warning: You have an axis with empty range (in
    direction z). R eplacing it with a default range and clearing all
    plots. on input line 29.



    [warning /pgfplots/warning/empty range cleared axis] LaTeX Font Info:
    External font cmex10' loaded for size (Font) <7> on
    input line 29. LaTeX Font Info: External font
    cmex10' loaded for
    size (Font) <5> on input line 29.




    However, instead of using a .csv format, if I stick with a table format (that is removing a comma between the data and also col sep = comma in the plot, then I get what I desired. However, the data I have is in .csv format (pretty big). So, instead of creating a huge data-set for y-axis, how can I achieve it with the above-mentioned script.



    The one that works without a .csv format (and without creating a huge data-set for a different axis per-se):



    documentclass[border=10pt]{standalone}
    usepackage{pgfplots}
    pgfplotsset{width=7cm,compat=1.8}
    usepackage{pgfplotstable}
    begin{document}
    begin{tikzpicture}

    pgfplotstableread{
    T3 v11
    0 0.66582
    0.000125 0.66582
    0.00025 0.66582
    0.000375 0.66582
    0.0005 0.66582
    0.000625 0.66582
    0.00075 0.66582
    0.000875 0.66582
    0.001 0.66582
    0.001125 0.66582
    }dummydata
    begin{axis}[
    domain=-4:4,
    samples y=0, ytick={1,...,4},
    ]
    {
    addplot3 table [x =T3, y expr=1, z=v11]
    {dummydata};
    }
    end{axis}
    end{tikzpicture}
    end{document}


    which would give me the desired output:



    enter image description here




    PS: This is just an example, in reality I use the external file to import my data for plotting purposes.











    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I have a .csv with 2-dimensional data. Now I am trying to plot it in different index ranging from -n:1:n (this index is y-axis).



      documentclass[border=10pt]{standalone}
      usepackage{pgfplots}
      pgfplotsset{width=7cm,compat=1.8}
      usepackage{pgfplotstable}
      begin{document}
      begin{tikzpicture}

      pgfplotstableread{
      T3,v11
      0,0.66582
      0.000125,0.66582
      0.00025,0.66582
      0.000375,0.66582
      0.0005,0.66582
      0.000625,0.66582
      0.00075,0.66582
      0.000875,0.66582
      0.001,0.66582
      0.001125,0.66582
      }dummydata
      begin{axis}[
      domain=-4:4,
      samples y=0, ytick={1,...,4},
      ]
      {
      addplot3 table [x =T3, y expr=1, z=v11, col sep = comma]
      {dummydata};
      }
      end{axis}
      end{tikzpicture}
      end{document}


      This throws errors like:




      ! Package pgfplots Error: The requested list entry with index 1 of
      dummydata i s too large; this list has not enough elements..



      See the pgfplots package documentation for explanation. Type H
      for immediate help. ...



                                                     l.27       {dummydata};
      This error message was generated by an errmessage command, so I can't give any explicit help. Pretend that


      you're Hercule Poirot: Examine all clues, and deduce the truth by
      order and method.



      ! Package pgfplots Error: Sorry, could not retrieve column 'T3' from
      table ''. Please check spelling (or introduce name
      aliases)..



      See the pgfplots package documentation for explanation. Type H
      for immediate help. ...



                                                     l.27       {dummydata};
      (That was another errmessage.)


      ! Package pgfplots Error: Sorry, could not retrieve column 'v11' from
      table ''. Please check spelling (or introduce name
      aliases)..



      See the pgfplots package documentation for explanation. Type H
      for immediate help. ...



                                                     l.27       {dummydata};
      (That was another errmessage.)


      Package pgfplots Warning: the current plot has no coordinates (or all
      have been filtered away) on input line 27.



      [warning /pgfplots/warning/plot without coordinates]



      Package pgfplots Warning: You have an axis with empty range (in
      direction z). R eplacing it with a default range and clearing all
      plots. on input line 29.



      [warning /pgfplots/warning/empty range cleared axis] LaTeX Font Info:
      External font cmex10' loaded for size (Font) <7> on
      input line 29. LaTeX Font Info: External font
      cmex10' loaded for
      size (Font) <5> on input line 29.




      However, instead of using a .csv format, if I stick with a table format (that is removing a comma between the data and also col sep = comma in the plot, then I get what I desired. However, the data I have is in .csv format (pretty big). So, instead of creating a huge data-set for y-axis, how can I achieve it with the above-mentioned script.



      The one that works without a .csv format (and without creating a huge data-set for a different axis per-se):



      documentclass[border=10pt]{standalone}
      usepackage{pgfplots}
      pgfplotsset{width=7cm,compat=1.8}
      usepackage{pgfplotstable}
      begin{document}
      begin{tikzpicture}

      pgfplotstableread{
      T3 v11
      0 0.66582
      0.000125 0.66582
      0.00025 0.66582
      0.000375 0.66582
      0.0005 0.66582
      0.000625 0.66582
      0.00075 0.66582
      0.000875 0.66582
      0.001 0.66582
      0.001125 0.66582
      }dummydata
      begin{axis}[
      domain=-4:4,
      samples y=0, ytick={1,...,4},
      ]
      {
      addplot3 table [x =T3, y expr=1, z=v11]
      {dummydata};
      }
      end{axis}
      end{tikzpicture}
      end{document}


      which would give me the desired output:



      enter image description here




      PS: This is just an example, in reality I use the external file to import my data for plotting purposes.











      share|improve this question















      I have a .csv with 2-dimensional data. Now I am trying to plot it in different index ranging from -n:1:n (this index is y-axis).



      documentclass[border=10pt]{standalone}
      usepackage{pgfplots}
      pgfplotsset{width=7cm,compat=1.8}
      usepackage{pgfplotstable}
      begin{document}
      begin{tikzpicture}

      pgfplotstableread{
      T3,v11
      0,0.66582
      0.000125,0.66582
      0.00025,0.66582
      0.000375,0.66582
      0.0005,0.66582
      0.000625,0.66582
      0.00075,0.66582
      0.000875,0.66582
      0.001,0.66582
      0.001125,0.66582
      }dummydata
      begin{axis}[
      domain=-4:4,
      samples y=0, ytick={1,...,4},
      ]
      {
      addplot3 table [x =T3, y expr=1, z=v11, col sep = comma]
      {dummydata};
      }
      end{axis}
      end{tikzpicture}
      end{document}


      This throws errors like:




      ! Package pgfplots Error: The requested list entry with index 1 of
      dummydata i s too large; this list has not enough elements..



      See the pgfplots package documentation for explanation. Type H
      for immediate help. ...



                                                     l.27       {dummydata};
      This error message was generated by an errmessage command, so I can't give any explicit help. Pretend that


      you're Hercule Poirot: Examine all clues, and deduce the truth by
      order and method.



      ! Package pgfplots Error: Sorry, could not retrieve column 'T3' from
      table ''. Please check spelling (or introduce name
      aliases)..



      See the pgfplots package documentation for explanation. Type H
      for immediate help. ...



                                                     l.27       {dummydata};
      (That was another errmessage.)


      ! Package pgfplots Error: Sorry, could not retrieve column 'v11' from
      table ''. Please check spelling (or introduce name
      aliases)..



      See the pgfplots package documentation for explanation. Type H
      for immediate help. ...



                                                     l.27       {dummydata};
      (That was another errmessage.)


      Package pgfplots Warning: the current plot has no coordinates (or all
      have been filtered away) on input line 27.



      [warning /pgfplots/warning/plot without coordinates]



      Package pgfplots Warning: You have an axis with empty range (in
      direction z). R eplacing it with a default range and clearing all
      plots. on input line 29.



      [warning /pgfplots/warning/empty range cleared axis] LaTeX Font Info:
      External font cmex10' loaded for size (Font) <7> on
      input line 29. LaTeX Font Info: External font
      cmex10' loaded for
      size (Font) <5> on input line 29.




      However, instead of using a .csv format, if I stick with a table format (that is removing a comma between the data and also col sep = comma in the plot, then I get what I desired. However, the data I have is in .csv format (pretty big). So, instead of creating a huge data-set for y-axis, how can I achieve it with the above-mentioned script.



      The one that works without a .csv format (and without creating a huge data-set for a different axis per-se):



      documentclass[border=10pt]{standalone}
      usepackage{pgfplots}
      pgfplotsset{width=7cm,compat=1.8}
      usepackage{pgfplotstable}
      begin{document}
      begin{tikzpicture}

      pgfplotstableread{
      T3 v11
      0 0.66582
      0.000125 0.66582
      0.00025 0.66582
      0.000375 0.66582
      0.0005 0.66582
      0.000625 0.66582
      0.00075 0.66582
      0.000875 0.66582
      0.001 0.66582
      0.001125 0.66582
      }dummydata
      begin{axis}[
      domain=-4:4,
      samples y=0, ytick={1,...,4},
      ]
      {
      addplot3 table [x =T3, y expr=1, z=v11]
      {dummydata};
      }
      end{axis}
      end{tikzpicture}
      end{document}


      which would give me the desired output:



      enter image description here




      PS: This is just an example, in reality I use the external file to import my data for plotting purposes.








      tikz-pgf pgfplots pgfplotstable






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 at 11:35

























      asked Nov 25 at 11:24









      Raaja

      2,0742525




      2,0742525






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          After moving col sep=comma to the right place, the errors are gone.



          documentclass[border=10pt]{standalone}
          usepackage{pgfplots}
          pgfplotsset{width=7cm,compat=1.8}
          usepackage{pgfplotstable}
          begin{document}
          begin{tikzpicture}

          pgfplotstableread[col sep = comma]{
          T3,v11
          0,0.66582
          0.000125,0.66582
          0.00025,0.66582
          0.000375,0.66582
          0.0005,0.66582
          0.000625,0.66582
          0.00075,0.66582
          0.000875,0.66582
          0.001,0.66582
          0.001125,0.66582
          }dummydata
          begin{axis}[
          domain=-4:4,
          samples y=0, ytick={1,...,4},
          ]
          {
          addplot3 table [x =T3, y expr=1, z=v11]
          {dummydata};
          }
          end{axis}
          end{tikzpicture}
          end{document}


          enter image description here



          MINI-EXPLANATION: When you load the data, you need to tell pgfplots what the structure of the file is, i.e. how it is supposed to decompose it into rows and columns, i.e. cells. If you do not tell pgfplots that the columns are separated by commas, say, it will assume they are separated by spaces or tabs, which is why your second example worked. In your first example, pgfplots "thought" the first non-header row has only the cell 0,0.66582 rather than two cells 0 and 0.66582, and so on, which explains the error messages. And yes, I can see how this might be confusing, after all you specify only in the plot which column goes where.






          share|improve this answer























          • Nice answer, could you briefly explain why we must do that change?
            – Raaja
            Nov 25 at 17:02






          • 1




            @Raaja I added some mini-explanation.
            – marmot
            Nov 25 at 17:09






          • 1




            Thanks for the little brief, its clear for me now!
            – Raaja
            Nov 25 at 17:12











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461669%2fplotting-a-3d-data-set-from-a-csv-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          After moving col sep=comma to the right place, the errors are gone.



          documentclass[border=10pt]{standalone}
          usepackage{pgfplots}
          pgfplotsset{width=7cm,compat=1.8}
          usepackage{pgfplotstable}
          begin{document}
          begin{tikzpicture}

          pgfplotstableread[col sep = comma]{
          T3,v11
          0,0.66582
          0.000125,0.66582
          0.00025,0.66582
          0.000375,0.66582
          0.0005,0.66582
          0.000625,0.66582
          0.00075,0.66582
          0.000875,0.66582
          0.001,0.66582
          0.001125,0.66582
          }dummydata
          begin{axis}[
          domain=-4:4,
          samples y=0, ytick={1,...,4},
          ]
          {
          addplot3 table [x =T3, y expr=1, z=v11]
          {dummydata};
          }
          end{axis}
          end{tikzpicture}
          end{document}


          enter image description here



          MINI-EXPLANATION: When you load the data, you need to tell pgfplots what the structure of the file is, i.e. how it is supposed to decompose it into rows and columns, i.e. cells. If you do not tell pgfplots that the columns are separated by commas, say, it will assume they are separated by spaces or tabs, which is why your second example worked. In your first example, pgfplots "thought" the first non-header row has only the cell 0,0.66582 rather than two cells 0 and 0.66582, and so on, which explains the error messages. And yes, I can see how this might be confusing, after all you specify only in the plot which column goes where.






          share|improve this answer























          • Nice answer, could you briefly explain why we must do that change?
            – Raaja
            Nov 25 at 17:02






          • 1




            @Raaja I added some mini-explanation.
            – marmot
            Nov 25 at 17:09






          • 1




            Thanks for the little brief, its clear for me now!
            – Raaja
            Nov 25 at 17:12















          up vote
          5
          down vote



          accepted










          After moving col sep=comma to the right place, the errors are gone.



          documentclass[border=10pt]{standalone}
          usepackage{pgfplots}
          pgfplotsset{width=7cm,compat=1.8}
          usepackage{pgfplotstable}
          begin{document}
          begin{tikzpicture}

          pgfplotstableread[col sep = comma]{
          T3,v11
          0,0.66582
          0.000125,0.66582
          0.00025,0.66582
          0.000375,0.66582
          0.0005,0.66582
          0.000625,0.66582
          0.00075,0.66582
          0.000875,0.66582
          0.001,0.66582
          0.001125,0.66582
          }dummydata
          begin{axis}[
          domain=-4:4,
          samples y=0, ytick={1,...,4},
          ]
          {
          addplot3 table [x =T3, y expr=1, z=v11]
          {dummydata};
          }
          end{axis}
          end{tikzpicture}
          end{document}


          enter image description here



          MINI-EXPLANATION: When you load the data, you need to tell pgfplots what the structure of the file is, i.e. how it is supposed to decompose it into rows and columns, i.e. cells. If you do not tell pgfplots that the columns are separated by commas, say, it will assume they are separated by spaces or tabs, which is why your second example worked. In your first example, pgfplots "thought" the first non-header row has only the cell 0,0.66582 rather than two cells 0 and 0.66582, and so on, which explains the error messages. And yes, I can see how this might be confusing, after all you specify only in the plot which column goes where.






          share|improve this answer























          • Nice answer, could you briefly explain why we must do that change?
            – Raaja
            Nov 25 at 17:02






          • 1




            @Raaja I added some mini-explanation.
            – marmot
            Nov 25 at 17:09






          • 1




            Thanks for the little brief, its clear for me now!
            – Raaja
            Nov 25 at 17:12













          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          After moving col sep=comma to the right place, the errors are gone.



          documentclass[border=10pt]{standalone}
          usepackage{pgfplots}
          pgfplotsset{width=7cm,compat=1.8}
          usepackage{pgfplotstable}
          begin{document}
          begin{tikzpicture}

          pgfplotstableread[col sep = comma]{
          T3,v11
          0,0.66582
          0.000125,0.66582
          0.00025,0.66582
          0.000375,0.66582
          0.0005,0.66582
          0.000625,0.66582
          0.00075,0.66582
          0.000875,0.66582
          0.001,0.66582
          0.001125,0.66582
          }dummydata
          begin{axis}[
          domain=-4:4,
          samples y=0, ytick={1,...,4},
          ]
          {
          addplot3 table [x =T3, y expr=1, z=v11]
          {dummydata};
          }
          end{axis}
          end{tikzpicture}
          end{document}


          enter image description here



          MINI-EXPLANATION: When you load the data, you need to tell pgfplots what the structure of the file is, i.e. how it is supposed to decompose it into rows and columns, i.e. cells. If you do not tell pgfplots that the columns are separated by commas, say, it will assume they are separated by spaces or tabs, which is why your second example worked. In your first example, pgfplots "thought" the first non-header row has only the cell 0,0.66582 rather than two cells 0 and 0.66582, and so on, which explains the error messages. And yes, I can see how this might be confusing, after all you specify only in the plot which column goes where.






          share|improve this answer














          After moving col sep=comma to the right place, the errors are gone.



          documentclass[border=10pt]{standalone}
          usepackage{pgfplots}
          pgfplotsset{width=7cm,compat=1.8}
          usepackage{pgfplotstable}
          begin{document}
          begin{tikzpicture}

          pgfplotstableread[col sep = comma]{
          T3,v11
          0,0.66582
          0.000125,0.66582
          0.00025,0.66582
          0.000375,0.66582
          0.0005,0.66582
          0.000625,0.66582
          0.00075,0.66582
          0.000875,0.66582
          0.001,0.66582
          0.001125,0.66582
          }dummydata
          begin{axis}[
          domain=-4:4,
          samples y=0, ytick={1,...,4},
          ]
          {
          addplot3 table [x =T3, y expr=1, z=v11]
          {dummydata};
          }
          end{axis}
          end{tikzpicture}
          end{document}


          enter image description here



          MINI-EXPLANATION: When you load the data, you need to tell pgfplots what the structure of the file is, i.e. how it is supposed to decompose it into rows and columns, i.e. cells. If you do not tell pgfplots that the columns are separated by commas, say, it will assume they are separated by spaces or tabs, which is why your second example worked. In your first example, pgfplots "thought" the first non-header row has only the cell 0,0.66582 rather than two cells 0 and 0.66582, and so on, which explains the error messages. And yes, I can see how this might be confusing, after all you specify only in the plot which column goes where.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 25 at 17:09

























          answered Nov 25 at 15:38









          marmot

          79.9k490170




          79.9k490170












          • Nice answer, could you briefly explain why we must do that change?
            – Raaja
            Nov 25 at 17:02






          • 1




            @Raaja I added some mini-explanation.
            – marmot
            Nov 25 at 17:09






          • 1




            Thanks for the little brief, its clear for me now!
            – Raaja
            Nov 25 at 17:12


















          • Nice answer, could you briefly explain why we must do that change?
            – Raaja
            Nov 25 at 17:02






          • 1




            @Raaja I added some mini-explanation.
            – marmot
            Nov 25 at 17:09






          • 1




            Thanks for the little brief, its clear for me now!
            – Raaja
            Nov 25 at 17:12
















          Nice answer, could you briefly explain why we must do that change?
          – Raaja
          Nov 25 at 17:02




          Nice answer, could you briefly explain why we must do that change?
          – Raaja
          Nov 25 at 17:02




          1




          1




          @Raaja I added some mini-explanation.
          – marmot
          Nov 25 at 17:09




          @Raaja I added some mini-explanation.
          – marmot
          Nov 25 at 17:09




          1




          1




          Thanks for the little brief, its clear for me now!
          – Raaja
          Nov 25 at 17:12




          Thanks for the little brief, its clear for me now!
          – Raaja
          Nov 25 at 17:12


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461669%2fplotting-a-3d-data-set-from-a-csv-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido