Label and passage height colours
Is it possible to change the label and/or passage height colours for specific points? I couldn't see a way of doing this. Thanks, Paul Rowe
Hi Paul If you are asking if it is possible to change the colour of a specific instance of a particular type of generic object, I think the answer is no, unless you modify the metapost definition for the generic object to allow attributes such as colours to be parsed. If you want all of a generic object type to be a colour, then use a layout statement something like: symbol-colour point label <colour> Easy hacks to mimic the first question include… Use point remark and set its colour to something striking with: symbol-colour point remark <colour> You can change the fonts to add or remove emphasis. Or use -context to make the label inherit colour as though it were another type of symbol… point label <x> <y> -text “label text” -context point anastomosis and symbol-colour point anastomosis <colour> I suspect not all point types work with -context, so you may have to hunt around to find one that works. Bruce From: Therion <therion-bounces@speleo.sk> On Behalf Of Paul Rowe Sent: Monday, 1 August 2022 15:30 To: List for Therion users <therion@speleo.sk> Subject: [Therion] Label and passage height colours Is it possible to change the label and/or passage height colours for specific points? I couldn't see a way of doing this. Thanks, Paul Rowe
Hi Bruce, Yes, I was wanting to change a specific instance. These are great tips. Using the colour of another point type that I'm not using, then changing the context for other specific points, would be a simple hack that I think would cover me. Cheers, Paul On Mon, 1 Aug 2022 at 18:12, Bruce Mutton <bruce@tomo.co.nz> wrote:
Hi Paul
If you are asking if it is possible to change the colour of a specific instance of a particular type of generic object, I think the answer is no, unless you modify the metapost definition for the generic object to allow attributes such as colours to be parsed.
If you want all of a generic object type to be a colour, then use a layout statement something like:
symbol-colour point label <colour>
Easy hacks to mimic the first question include…
Use point remark and set its colour to something striking with:
symbol-colour point remark <colour>
You can change the fonts to add or remove emphasis.
Or use -context to make the label inherit colour as though it were another type of symbol…
point label <x> <y> -text “label text” -context point anastomosis
and
symbol-colour point anastomosis <colour>
I suspect not all point types work with -context, so you may have to hunt around to find one that works.
Bruce
*From:* Therion <therion-bounces@speleo.sk> *On Behalf Of *Paul Rowe *Sent:* Monday, 1 August 2022 15:30 *To:* List for Therion users <therion@speleo.sk> *Subject:* [Therion] Label and passage height colours
Is it possible to change the label and/or passage height colours for specific points? I couldn't see a way of doing this.
Thanks,
Paul Rowe _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
I’m sorry Paul, I’m still inside a Covid cloud it seems. -context works with symbol-show and symbol-hide but not with symbol-colour, so it is not a solution to your problem. Bruce From: Therion <therion-bounces@speleo.sk> On Behalf Of Paul Rowe Sent: Monday, 1 August 2022 18:41 To: List for Therion users <therion@speleo.sk> Subject: Re: [Therion] Label and passage height colours Hi Bruce, Yes, I was wanting to change a specific instance. These are great tips. Using the colour of another point type that I'm not using, then changing the context for other specific points, would be a simple hack that I think would cover me. Cheers, Paul On Mon, 1 Aug 2022 at 18:12, Bruce Mutton <bruce@tomo.co.nz <mailto:bruce@tomo.co.nz> > wrote: Hi Paul If you are asking if it is possible to change the colour of a specific instance of a particular type of generic object, I think the answer is no, unless you modify the metapost definition for the generic object to allow attributes such as colours to be parsed. If you want all of a generic object type to be a colour, then use a layout statement something like: symbol-colour point label <colour> Easy hacks to mimic the first question include… Use point remark and set its colour to something striking with: symbol-colour point remark <colour> You can change the fonts to add or remove emphasis. Or use -context to make the label inherit colour as though it were another type of symbol… point label <x> <y> -text “label text” -context point anastomosis and symbol-colour point anastomosis <colour> I suspect not all point types work with -context, so you may have to hunt around to find one that works. Bruce From: Therion <therion-bounces@speleo.sk <mailto:therion-bounces@speleo.sk> > On Behalf Of Paul Rowe Sent: Monday, 1 August 2022 15:30 To: List for Therion users <therion@speleo.sk <mailto:therion@speleo.sk> > Subject: [Therion] Label and passage height colours Is it possible to change the label and/or passage height colours for specific points? I couldn't see a way of doing this. Thanks, Paul Rowe _______________________________________________ Therion mailing list Therion@speleo.sk <mailto:Therion@speleo.sk> https://mailman.speleo.sk/listinfo/therion
Ok, I'll have a go at the metapost route. Get well soon! Paul On Tue, 2 Aug 2022 at 09:01, Bruce Mutton <bruce@tomo.co.nz> wrote:
I’m sorry Paul, I’m still inside a Covid cloud it seems.
-context works with symbol-show and symbol-hide but not with symbol-colour, so it is not a solution to your problem.
Bruce
*From:* Therion <therion-bounces@speleo.sk> *On Behalf Of *Paul Rowe *Sent:* Monday, 1 August 2022 18:41 *To:* List for Therion users <therion@speleo.sk> *Subject:* Re: [Therion] Label and passage height colours
Hi Bruce,
Yes, I was wanting to change a specific instance. These are great tips.
Using the colour of another point type that I'm not using, then changing the context for other specific points, would be a simple hack that I think would cover me.
Cheers,
Paul
On Mon, 1 Aug 2022 at 18:12, Bruce Mutton <bruce@tomo.co.nz> wrote:
Hi Paul
If you are asking if it is possible to change the colour of a specific instance of a particular type of generic object, I think the answer is no, unless you modify the metapost definition for the generic object to allow attributes such as colours to be parsed.
If you want all of a generic object type to be a colour, then use a layout statement something like:
symbol-colour point label <colour>
Easy hacks to mimic the first question include…
Use point remark and set its colour to something striking with:
symbol-colour point remark <colour>
You can change the fonts to add or remove emphasis.
Or use -context to make the label inherit colour as though it were another type of symbol…
point label <x> <y> -text “label text” -context point anastomosis
and
symbol-colour point anastomosis <colour>
I suspect not all point types work with -context, so you may have to hunt around to find one that works.
Bruce
*From:* Therion <therion-bounces@speleo.sk> *On Behalf Of *Paul Rowe *Sent:* Monday, 1 August 2022 15:30 *To:* List for Therion users <therion@speleo.sk> *Subject:* [Therion] Label and passage height colours
Is it possible to change the label and/or passage height colours for specific points? I couldn't see a way of doing this.
Thanks,
Paul Rowe
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
On 01/08/2022 22:07, Paul Rowe wrote:
Ok, I'll have a go at the metapost route.
MetaPost for label type things is really inconvenient to work with, so you might want to use my code to create stylable text labels for a custom point. It just hooks into the existing label code, so it can create any type of text label point that Therion can already create (including the passage height symbols). You could use it to create - for example: point u -subtype speciallabel -attr text 23 Then you can style that whatever colour you want. https://therion.speleo.sk/wiki/metapost#adding_custom_styled_labels_at_any_p... And some code that uses it for a custom point type: https://therion.speleo.sk/wiki/metapost#rope_lengths
That's excellent. I will give that a go. Cheers, Paul On Tue, 2 Aug 2022 at 09:19, Tarquin Wilton-Jones via Therion < therion@speleo.sk> wrote:
On 01/08/2022 22:07, Paul Rowe wrote:
Ok, I'll have a go at the metapost route.
MetaPost for label type things is really inconvenient to work with, so you might want to use my code to create stylable text labels for a custom point. It just hooks into the existing label code, so it can create any type of text label point that Therion can already create (including the passage height symbols). You could use it to create - for example: point u -subtype speciallabel -attr text 23
Then you can style that whatever colour you want.
https://therion.speleo.sk/wiki/metapost#adding_custom_styled_labels_at_any_p...
And some code that uses it for a custom point type:
https://therion.speleo.sk/wiki/metapost#rope_lengths _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
participants (3)
-
Bruce Mutton -
Paul Rowe -
Tarquin Wilton-Jones