Accessing raw meta in pgfplots scatter plots with explicit meta











up vote
3
down vote

favorite












I am trying to make use of explicit meta data that I add to coordinates in a scatter plots. However, I do not want the transformed data, rather it should be the original one. This question is motivated by this question, where the raw meta data was to be used to set the node anchors.



Problem: Why is there an additional ] in the end. That is, why is 0 getting mapped to 0Y0.0e0] rather than 0Y0.0e0? AFAIK thisextra ] should not be there, or am I missing something? This thingy makes it very hard to parse the data to get back the original entry.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16,
poles/.style= { scatter,
scatter src=explicit, only marks, mark=x, mark size = 1ex, thick},
}
begin{document}
begin{tikzpicture}
begin{axis}[% point meta=explicit symbolic, %<- does not help (as expected)
visualization depends on=pgfplotspointmeta as mymeta,
nodes near coords={pgfplotspointmeta}, % pgfplotspointmetatransformed transforms the values
enlargelimits=0.3]
addplot[poles] coordinates {(-2,2)[90] (-2,-2)[270] (-8,0)[0]};
end{axis}
end{tikzpicture}
end{document}


enter image description here



I understand that if one was to provide the data in form of a table, the analogous problem would be absent. That is to say that I am not interested in a workaround in which the data is being read from a table.










share|improve this question


























    up vote
    3
    down vote

    favorite












    I am trying to make use of explicit meta data that I add to coordinates in a scatter plots. However, I do not want the transformed data, rather it should be the original one. This question is motivated by this question, where the raw meta data was to be used to set the node anchors.



    Problem: Why is there an additional ] in the end. That is, why is 0 getting mapped to 0Y0.0e0] rather than 0Y0.0e0? AFAIK thisextra ] should not be there, or am I missing something? This thingy makes it very hard to parse the data to get back the original entry.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{pgfplots}
    pgfplotsset{compat=1.16,
    poles/.style= { scatter,
    scatter src=explicit, only marks, mark=x, mark size = 1ex, thick},
    }
    begin{document}
    begin{tikzpicture}
    begin{axis}[% point meta=explicit symbolic, %<- does not help (as expected)
    visualization depends on=pgfplotspointmeta as mymeta,
    nodes near coords={pgfplotspointmeta}, % pgfplotspointmetatransformed transforms the values
    enlargelimits=0.3]
    addplot[poles] coordinates {(-2,2)[90] (-2,-2)[270] (-8,0)[0]};
    end{axis}
    end{tikzpicture}
    end{document}


    enter image description here



    I understand that if one was to provide the data in form of a table, the analogous problem would be absent. That is to say that I am not interested in a workaround in which the data is being read from a table.










    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am trying to make use of explicit meta data that I add to coordinates in a scatter plots. However, I do not want the transformed data, rather it should be the original one. This question is motivated by this question, where the raw meta data was to be used to set the node anchors.



      Problem: Why is there an additional ] in the end. That is, why is 0 getting mapped to 0Y0.0e0] rather than 0Y0.0e0? AFAIK thisextra ] should not be there, or am I missing something? This thingy makes it very hard to parse the data to get back the original entry.



      documentclass[tikz,border=3.14mm]{standalone}
      usepackage{pgfplots}
      pgfplotsset{compat=1.16,
      poles/.style= { scatter,
      scatter src=explicit, only marks, mark=x, mark size = 1ex, thick},
      }
      begin{document}
      begin{tikzpicture}
      begin{axis}[% point meta=explicit symbolic, %<- does not help (as expected)
      visualization depends on=pgfplotspointmeta as mymeta,
      nodes near coords={pgfplotspointmeta}, % pgfplotspointmetatransformed transforms the values
      enlargelimits=0.3]
      addplot[poles] coordinates {(-2,2)[90] (-2,-2)[270] (-8,0)[0]};
      end{axis}
      end{tikzpicture}
      end{document}


      enter image description here



      I understand that if one was to provide the data in form of a table, the analogous problem would be absent. That is to say that I am not interested in a workaround in which the data is being read from a table.










      share|improve this question













      I am trying to make use of explicit meta data that I add to coordinates in a scatter plots. However, I do not want the transformed data, rather it should be the original one. This question is motivated by this question, where the raw meta data was to be used to set the node anchors.



      Problem: Why is there an additional ] in the end. That is, why is 0 getting mapped to 0Y0.0e0] rather than 0Y0.0e0? AFAIK thisextra ] should not be there, or am I missing something? This thingy makes it very hard to parse the data to get back the original entry.



      documentclass[tikz,border=3.14mm]{standalone}
      usepackage{pgfplots}
      pgfplotsset{compat=1.16,
      poles/.style= { scatter,
      scatter src=explicit, only marks, mark=x, mark size = 1ex, thick},
      }
      begin{document}
      begin{tikzpicture}
      begin{axis}[% point meta=explicit symbolic, %<- does not help (as expected)
      visualization depends on=pgfplotspointmeta as mymeta,
      nodes near coords={pgfplotspointmeta}, % pgfplotspointmetatransformed transforms the values
      enlargelimits=0.3]
      addplot[poles] coordinates {(-2,2)[90] (-2,-2)[270] (-8,0)[0]};
      end{axis}
      end{tikzpicture}
      end{document}


      enter image description here



      I understand that if one was to provide the data in form of a table, the analogous problem would be absent. That is to say that I am not interested in a workaround in which the data is being read from a table.







      pgfplots






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 13 hours ago









      marmot

      76.9k487161




      76.9k487161



























          active

          oldest

          votes











          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%2f461147%2faccessing-raw-meta-in-pgfplots-scatter-plots-with-explicit-meta%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461147%2faccessing-raw-meta-in-pgfplots-scatter-plots-with-explicit-meta%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

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks