Error interacting with `visualization depends on` with `values` and `pgfplotstable` Announcing...
What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?
Keep at all times, the minus sign above aligned with minus sign below
Did pre-Columbian Americans know the spherical shape of the Earth?
What criticisms of Wittgenstein's philosophy of language have been offered?
How can I list files in reverse time order by a command and pass them as arguments to another command?
Why do C and C++ allow the expression (int) + 4*5;
Was the pager message from Nick Fury to Captain Marvel unnecessary?
How to resize main filesystem
One-one communication
What was the last profitable war?
3D Masyu - A Die
An isoperimetric-type inequality inside a cube
How do I say "this must not happen"?
Where did Ptolemy compare the Earth to the distance of fixed stars?
Can two people see the same photon?
newbie Q : How to read an output file in one command line
How do Java 8 default methods hеlp with lambdas?
Table formatting with tabularx?
Understanding piped commands in GNU/Linux
Where and when has Thucydides been studied?
Why does BitLocker not use RSA?
Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?
Can the Haste spell grant both a Beast Master ranger and their animal companion extra attacks?
Sally's older brother
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
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}
usepackage{pgfplots, pgfplotstable}
begin{document}
pgfdeclareplotmark{a}{pgfuseplotmark{*}}
pgfdeclareplotmark{b}{pgfuseplotmark{triangle*}}
pgfdeclareplotmark{c}{pgfuseplotmark{square*}}
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}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
% visualization depends on=value thisrow{label}aslabel,
% scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
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
};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
end{document}
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
add a comment |
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}
usepackage{pgfplots, pgfplotstable}
begin{document}
pgfdeclareplotmark{a}{pgfuseplotmark{*}}
pgfdeclareplotmark{b}{pgfuseplotmark{triangle*}}
pgfdeclareplotmark{c}{pgfuseplotmark{square*}}
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}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
% visualization depends on=value thisrow{label}aslabel,
% scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
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
};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
end{document}
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
add a comment |
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}
usepackage{pgfplots, pgfplotstable}
begin{document}
pgfdeclareplotmark{a}{pgfuseplotmark{*}}
pgfdeclareplotmark{b}{pgfuseplotmark{triangle*}}
pgfdeclareplotmark{c}{pgfuseplotmark{square*}}
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}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
% visualization depends on=value thisrow{label}aslabel,
% scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
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
};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
end{document}
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
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}
usepackage{pgfplots, pgfplotstable}
begin{document}
pgfdeclareplotmark{a}{pgfuseplotmark{*}}
pgfdeclareplotmark{b}{pgfuseplotmark{triangle*}}
pgfdeclareplotmark{c}{pgfuseplotmark{square*}}
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}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
% visualization depends on=value thisrow{label}aslabel,
% scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
scatter/@pre marker code/.append style={/tikz/mark=label},
]
table[x=x,y=y]{tab};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
begin{tikzpicture}
begin{axis}[legend pos=south east]
addplot[%
scatter,
only marks,
visualization depends on=value thisrow{label}aslabel,
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
};
legend{Class 1,Class 2,Class 3}
end{axis}
end{tikzpicture}
end{document}
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
pgfplots pgfplotstable
asked 6 mins ago
adnadn
5,60053477
5,60053477
add a comment |
add a comment |
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
});
}
});
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%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
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.
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%2f485969%2ferror-interacting-with-visualization-depends-on-with-values-and-pgfplotstab%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