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}
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
add a comment |
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}
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
add a comment |
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}
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
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}
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
pgfplots
asked 13 hours ago
marmot
76.9k487161
76.9k487161
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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