Sender | Message | Time |
---|---|---|
11 Dec 2023 | ||
matrix-t2bot joined the room. | 15:57:34 | |
19 Jan 2024 | ||
Manis joined the room. | 21:49:02 | |
20 Jan 2024 | ||
Manis | Hi. I've seen it's quite silent in here, but maybe somebody has an idea: I'm struggling to get /pgfplots/table/string replace* to work; it only replaces digits in numbers but not words in a string. Is this the expected behaviour? | 09:03:46 |
marei | In reply to @manis:matrix.orgNo, but if I remember correctly it's by default not applied to the header, as it's using the preprocessor in case you use it as an option to the whole table. | 09:26:26 |
Manis | marei: I don't have headers in this case. I'm trying to apply some abbreviation(s) to the string values read from a file's first column. | 09:27:35 |
marei |
| 09:34:01 |
marei | works as expected. first line isn't replaced, second is | 09:34:15 |
Manis | Hmm, yeah, interesting. I just tried to throw together a MWE and it worked, too :headscratch:
| 09:35:10 |
Manis | AHA! | 09:36:57 |
Manis | It does not work when text indicator is used. | 09:37:08 |
Manis | cf.
| 09:37:13 |
marei | I'd expect that one to add grouping, and that would explain why it doesn't work. | 09:50:57 |
Manis | Shouldn't the quotes be removed before the cell's contents are further processed? | 09:55:23 |
marei | They are. But changed to a group. -> I send you a direct message with an example guess we shouldn't spam that channel too much | 09:56:11 |
Manis | OK, thank you. | 09:56:26 |
hmenke | In reply to @marei:im.f3l.deDiscussion about how to use pgfplotstable is not spam. This is literally what the channel is for. Please feel free to continue here. | 10:29:21 |
marei | Okay, thanks for clarifying, i was not sure as we were at some specific example at that point. - but actually i now learned, that the text indicator add grouping which is quite nice to know. | 10:31:08 |
Manis | Yeah, it came as a surprise to me. | 10:34:20 |
Manis | I expected it to behave in a more CSV way to prevent separators inside the text indicator to split fields. | 10:34:55 |
Manis | I don't know if it makes sense, since AFAIK {} in the table data also create groups, don't they? | 10:35:50 |
Manis | If I want to string replace*={ }{\,} , do I need to expand \, first? | 10:54:19 |
Manis | As it is, it replaces [space] with a literal \, | 10:54:35 |
Manis | * As it is, it replaces [space] with \, verbatim. | 10:54:44 |
Manis | I solved this thing outside of TeX. I'll just add the thin spaces in the input file already. | 11:11:02 |
Manis | Another problem popped up, though. If my This does not work:
| 11:11:59 |
Manis | * Another problem popped up, though. If my This does not work:
| 11:12:12 |
Manis | Ah, I must not have any newlines in the optional argument to \plottable . But why are they ignored when directly passed to the \pgf... commands but not when they "go through" #1 ? | 11:15:53 |
marei | In reply to @manis:matrix.orgIf you typeset the table/ content it would be expanded later. In the cell itself it's not. and that's also what I would expect. To get the thinspace directly you would have to change the category code otherwhise it's just a space. | 15:18:46 |
marei | In reply to @manis:matrix.org and that's also an issue with spaces… as spaces are preserved in that setup. so
| 15:19:42 |
marei | In reply to @manis:matrix.org* and that's also an issue with spaces… as spaces are preserved in that setup. so
would work, or
| 15:21:12 |