Error interacting with `visualization depends on` with `values` and `pgfplotstable` Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)plotting two time series with boundsGrouped bar chartA workaround for visualization depends on and ybar stackedpgfplotstable manage strings and valuesHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphpgfplots: percentage in matrix plotCenter the axes in the coordinate originpgfplots: updating and accessing a macro definition across different interations of plotting points

Does a random sequence of vectors span a Hilbert space?

New Order #6: Easter Egg

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Did any compiler fully use 80-bit floating point?

Sally's older brother

What are some likely causes to domain member PC losing contact to domain controller?

Inverse square law not accurate for non-point masses?

How does the body cool itself in a stillsuit?

Did pre-Columbian Americans know the spherical shape of the Earth?

Flight departed from the gate 5 min before scheduled departure time. Refund options

Can two people see the same photon?

Centre cell vertically in tabularx

How do I say "this must not happen"?

How to resize main filesystem

Besides transaction validation, are there any other uses of the Script language in Bitcoin

How does TikZ render an arc?

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

Twin's vs. Twins'

Noise in Eigenvalues plot

One-one communication

How many time has Arya actually used Needle?

How to make triangles with rounded sides and corners? (squircle with 3 sides)

My mentor says to set image to Fine instead of RAW — how is this different from JPG?



Error interacting with `visualization depends on` with `values` and `pgfplotstable`



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)plotting two time series with boundsGrouped bar chartA workaround for visualization depends on and ybar stackedpgfplotstable manage strings and valuesHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?How to hide empty (value 0) ybars with pgfplots?Show mark labels near marks and not centered in ybar interaval graphpgfplots: percentage in matrix plotCenter the axes in the coordinate originpgfplots: updating and accessing a macro definition across different interations of plotting points










0















Problem



When changing the values of the markers on a scatter plot using the visualization depends on key and when the data comes from a pgfplotstable the marker printing is broken.



If I have the table data explicitly on the addplot it works (see example 3). Similarly, if I have the data coming from a pgfplotstable and without the visualization handler, it also works (see example 1).



However, if I mix both, it just stops printing the markers (see example 2).



Question



How can I make the visualization depends on=value and data coming from a pgfplotstable work together?



Examples



documentclass[convert]standalone
usepackagepgfplots, pgfplotstable
begindocument

pgfdeclareplotmarkapgfuseplotmark*
pgfdeclareplotmarkbpgfuseplotmarktriangle*
pgfdeclareplotmarkcpgfuseplotmarksquare*

pgfplotstableread%
x y label
0.1 0.15 a
0.45 0.27 c
0.02 0.17 a
0.06 0.1 a
0.9 0.5 b
0.5 0.3 c
0.85 0.52 b
0.12 0.05 a
0.73 0.45 b
0.53 0.25 c
0.76 0.5 b
0.55 0.32 c
tab

begintikzpicture
beginaxis[legend pos=south east]
addplot[%
scatter,
only marks,
% visualization depends on=value thisrowlabelaslabel,
% scatter/@pre marker code/.append style=/tikz/mark=label,
]
table[x=x,y=y]tab;
legendClass 1,Class 2,Class 3
endaxis
endtikzpicture
begintikzpicture
beginaxis[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrowlabelaslabel,
scatter/@pre marker code/.append style=/tikz/mark=label,
]
table[x=x,y=y]tab;
legendClass 1,Class 2,Class 3
endaxis
endtikzpicture
begintikzpicture
beginaxis[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrowlabelaslabel,
scatter/@pre marker code/.append style=/tikz/mark=label,
]
table[x=x,y=y]
x y label
0.1 0.15 a
0.45 0.27 c
0.02 0.17 a
0.06 0.1 a
0.9 0.5 b
0.5 0.3 c
0.85 0.52 b
0.12 0.05 a
0.73 0.45 b
0.53 0.25 c
0.76 0.5 b
0.55 0.32 c
;
legendClass 1,Class 2,Class 3
endaxis
endtikzpicture
enddocument


examples of generation



More Context



I'm trying to create some columns from a table, and then trying to plot it. Hence, my need to use a pgfplotstable as the source of the data.



I can change the size of the marker using @pre marker code/.append code handler. However, the @pre marker code/.append style also gives error (not sure if that is related to this problem though).



So, in some sense, I can see that the @pre marker code is seeing the values created with the visualization depends on definition. But for some particular reason it doesn't sees this one with non-numerical values.



Any ideas or hints why this may be happening?










share|improve this question


























    0















    Problem



    When changing the values of the markers on a scatter plot using the visualization depends on key and when the data comes from a pgfplotstable the marker printing is broken.



    If I have the table data explicitly on the addplot it works (see example 3). Similarly, if I have the data coming from a pgfplotstable and without the visualization handler, it also works (see example 1).



    However, if I mix both, it just stops printing the markers (see example 2).



    Question



    How can I make the visualization depends on=value and data coming from a pgfplotstable work together?



    Examples



    documentclass[convert]standalone
    usepackagepgfplots, pgfplotstable
    begindocument

    pgfdeclareplotmarkapgfuseplotmark*
    pgfdeclareplotmarkbpgfuseplotmarktriangle*
    pgfdeclareplotmarkcpgfuseplotmarksquare*

    pgfplotstableread%
    x y label
    0.1 0.15 a
    0.45 0.27 c
    0.02 0.17 a
    0.06 0.1 a
    0.9 0.5 b
    0.5 0.3 c
    0.85 0.52 b
    0.12 0.05 a
    0.73 0.45 b
    0.53 0.25 c
    0.76 0.5 b
    0.55 0.32 c
    tab

    begintikzpicture
    beginaxis[legend pos=south east]
    addplot[%
    scatter,
    only marks,
    % visualization depends on=value thisrowlabelaslabel,
    % scatter/@pre marker code/.append style=/tikz/mark=label,
    ]
    table[x=x,y=y]tab;
    legendClass 1,Class 2,Class 3
    endaxis
    endtikzpicture
    begintikzpicture
    beginaxis[legend pos=south east]
    addplot[%
    scatter,
    only marks,
    visualization depends on=value thisrowlabelaslabel,
    scatter/@pre marker code/.append style=/tikz/mark=label,
    ]
    table[x=x,y=y]tab;
    legendClass 1,Class 2,Class 3
    endaxis
    endtikzpicture
    begintikzpicture
    beginaxis[legend pos=south east]
    addplot[%
    scatter,
    only marks,
    visualization depends on=value thisrowlabelaslabel,
    scatter/@pre marker code/.append style=/tikz/mark=label,
    ]
    table[x=x,y=y]
    x y label
    0.1 0.15 a
    0.45 0.27 c
    0.02 0.17 a
    0.06 0.1 a
    0.9 0.5 b
    0.5 0.3 c
    0.85 0.52 b
    0.12 0.05 a
    0.73 0.45 b
    0.53 0.25 c
    0.76 0.5 b
    0.55 0.32 c
    ;
    legendClass 1,Class 2,Class 3
    endaxis
    endtikzpicture
    enddocument


    examples of generation



    More Context



    I'm trying to create some columns from a table, and then trying to plot it. Hence, my need to use a pgfplotstable as the source of the data.



    I can change the size of the marker using @pre marker code/.append code handler. However, the @pre marker code/.append style also gives error (not sure if that is related to this problem though).



    So, in some sense, I can see that the @pre marker code is seeing the values created with the visualization depends on definition. But for some particular reason it doesn't sees this one with non-numerical values.



    Any ideas or hints why this may be happening?










    share|improve this question
























      0












      0








      0








      Problem



      When changing the values of the markers on a scatter plot using the visualization depends on key and when the data comes from a pgfplotstable the marker printing is broken.



      If I have the table data explicitly on the addplot it works (see example 3). Similarly, if I have the data coming from a pgfplotstable and without the visualization handler, it also works (see example 1).



      However, if I mix both, it just stops printing the markers (see example 2).



      Question



      How can I make the visualization depends on=value and data coming from a pgfplotstable work together?



      Examples



      documentclass[convert]standalone
      usepackagepgfplots, pgfplotstable
      begindocument

      pgfdeclareplotmarkapgfuseplotmark*
      pgfdeclareplotmarkbpgfuseplotmarktriangle*
      pgfdeclareplotmarkcpgfuseplotmarksquare*

      pgfplotstableread%
      x y label
      0.1 0.15 a
      0.45 0.27 c
      0.02 0.17 a
      0.06 0.1 a
      0.9 0.5 b
      0.5 0.3 c
      0.85 0.52 b
      0.12 0.05 a
      0.73 0.45 b
      0.53 0.25 c
      0.76 0.5 b
      0.55 0.32 c
      tab

      begintikzpicture
      beginaxis[legend pos=south east]
      addplot[%
      scatter,
      only marks,
      % visualization depends on=value thisrowlabelaslabel,
      % scatter/@pre marker code/.append style=/tikz/mark=label,
      ]
      table[x=x,y=y]tab;
      legendClass 1,Class 2,Class 3
      endaxis
      endtikzpicture
      begintikzpicture
      beginaxis[legend pos=south east]
      addplot[%
      scatter,
      only marks,
      visualization depends on=value thisrowlabelaslabel,
      scatter/@pre marker code/.append style=/tikz/mark=label,
      ]
      table[x=x,y=y]tab;
      legendClass 1,Class 2,Class 3
      endaxis
      endtikzpicture
      begintikzpicture
      beginaxis[legend pos=south east]
      addplot[%
      scatter,
      only marks,
      visualization depends on=value thisrowlabelaslabel,
      scatter/@pre marker code/.append style=/tikz/mark=label,
      ]
      table[x=x,y=y]
      x y label
      0.1 0.15 a
      0.45 0.27 c
      0.02 0.17 a
      0.06 0.1 a
      0.9 0.5 b
      0.5 0.3 c
      0.85 0.52 b
      0.12 0.05 a
      0.73 0.45 b
      0.53 0.25 c
      0.76 0.5 b
      0.55 0.32 c
      ;
      legendClass 1,Class 2,Class 3
      endaxis
      endtikzpicture
      enddocument


      examples of generation



      More Context



      I'm trying to create some columns from a table, and then trying to plot it. Hence, my need to use a pgfplotstable as the source of the data.



      I can change the size of the marker using @pre marker code/.append code handler. However, the @pre marker code/.append style also gives error (not sure if that is related to this problem though).



      So, in some sense, I can see that the @pre marker code is seeing the values created with the visualization depends on definition. But for some particular reason it doesn't sees this one with non-numerical values.



      Any ideas or hints why this may be happening?










      share|improve this question














      Problem



      When changing the values of the markers on a scatter plot using the visualization depends on key and when the data comes from a pgfplotstable the marker printing is broken.



      If I have the table data explicitly on the addplot it works (see example 3). Similarly, if I have the data coming from a pgfplotstable and without the visualization handler, it also works (see example 1).



      However, if I mix both, it just stops printing the markers (see example 2).



      Question



      How can I make the visualization depends on=value and data coming from a pgfplotstable work together?



      Examples



      documentclass[convert]standalone
      usepackagepgfplots, pgfplotstable
      begindocument

      pgfdeclareplotmarkapgfuseplotmark*
      pgfdeclareplotmarkbpgfuseplotmarktriangle*
      pgfdeclareplotmarkcpgfuseplotmarksquare*

      pgfplotstableread%
      x y label
      0.1 0.15 a
      0.45 0.27 c
      0.02 0.17 a
      0.06 0.1 a
      0.9 0.5 b
      0.5 0.3 c
      0.85 0.52 b
      0.12 0.05 a
      0.73 0.45 b
      0.53 0.25 c
      0.76 0.5 b
      0.55 0.32 c
      tab

      begintikzpicture
      beginaxis[legend pos=south east]
      addplot[%
      scatter,
      only marks,
      % visualization depends on=value thisrowlabelaslabel,
      % scatter/@pre marker code/.append style=/tikz/mark=label,
      ]
      table[x=x,y=y]tab;
      legendClass 1,Class 2,Class 3
      endaxis
      endtikzpicture
      begintikzpicture
      beginaxis[legend pos=south east]
      addplot[%
      scatter,
      only marks,
      visualization depends on=value thisrowlabelaslabel,
      scatter/@pre marker code/.append style=/tikz/mark=label,
      ]
      table[x=x,y=y]tab;
      legendClass 1,Class 2,Class 3
      endaxis
      endtikzpicture
      begintikzpicture
      beginaxis[legend pos=south east]
      addplot[%
      scatter,
      only marks,
      visualization depends on=value thisrowlabelaslabel,
      scatter/@pre marker code/.append style=/tikz/mark=label,
      ]
      table[x=x,y=y]
      x y label
      0.1 0.15 a
      0.45 0.27 c
      0.02 0.17 a
      0.06 0.1 a
      0.9 0.5 b
      0.5 0.3 c
      0.85 0.52 b
      0.12 0.05 a
      0.73 0.45 b
      0.53 0.25 c
      0.76 0.5 b
      0.55 0.32 c
      ;
      legendClass 1,Class 2,Class 3
      endaxis
      endtikzpicture
      enddocument


      examples of generation



      More Context



      I'm trying to create some columns from a table, and then trying to plot it. Hence, my need to use a pgfplotstable as the source of the data.



      I can change the size of the marker using @pre marker code/.append code handler. However, the @pre marker code/.append style also gives error (not sure if that is related to this problem though).



      So, in some sense, I can see that the @pre marker code is seeing the values created with the visualization depends on definition. But for some particular reason it doesn't sees this one with non-numerical values.



      Any ideas or hints why this may be happening?







      pgfplots pgfplotstable






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 15 mins ago









      adnadn

      5,60053477




      5,60053477




















          0






          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',
          autoActivateHeartbeat: false,
          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%2f485969%2ferror-interacting-with-visualization-depends-on-with-values-and-pgfplotstab%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485969%2ferror-interacting-with-visualization-depends-on-with-values-and-pgfplotstab%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

          Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

          Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

          Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm