[mesa-users] pgstar - colours
Jakub Ostrowski
ostrowski at astro.uni.wroc.pl
Fri Oct 9 13:02:15 EDT 2015
Hi Bill,
I’m fine and everything is well :) Thank you for a detailed explanation. This method works, I’ll update you when I find a proper combination or have more questions.
Frank, I know there are python scripts but I’m not happy with the results I get.
Cheers,
Jakub
> On 09 Oct 2015, at 17:42, Bill Paxton <paxton at kitp.ucsb.edu> wrote:
>
> H iJakub,
>
> Good to hear from you. Hope all is going well. Concerning your question, for now you'll need to make a tiny edit to the code and rebuild mesa/star. I've taken an "add on request" approach to pgstar features since the possible additions are endless (i'd really prefer using PostScript instead of an inlist!). So I'll just address the kipp plot for now -- we'll need to look into extending the pgstar controls to allow user selection of colors.
>
> In star/private/pgstar_kipp.f90 you'll find these lines that setup the colors:
>
> mix_clr(convective_mixing) = clr_convection
> mix_clr(softened_convective_mixing) = clr_softened_convection
> mix_clr(overshoot_mixing) = clr_overshoot
> mix_clr(semiconvective_mixing) = clr_semiconvection
> mix_clr(thermohaline_mixing) = clr_thermohaline
> mix_clr(rotation_mixing) = clr_rotation
> mix_clr(rayleigh_taylor_mixing) = clr_rayleigh_taylor
> mix_clr(minimum_mixing) = clr_minimum
> mix_clr(anonymous_mixing) = clr_anonymous
>
> In star/public/star_def.inc you'll find the list of predefined colors (if you can't find anything you like in this list, let me know).
>
> integer :: clr_Black
> integer :: clr_Blue
> integer :: clr_BrightBlue
> integer :: clr_Goldenrod
> integer :: clr_Lilac
> integer :: clr_Coral
> integer :: clr_FireBrick
> integer :: clr_RoyalPurple
> integer :: clr_Gold
> integer :: clr_Crimson
> integer :: clr_SlateGray
> integer :: clr_Teal
> integer :: clr_LightSteelBlue
> integer :: clr_MediumSlateBlue
> integer :: clr_MediumSpringGreen
> integer :: clr_MediumBlue
> integer :: clr_RoyalBlue
> integer :: clr_LightGray
> integer :: clr_Silver
> integer :: clr_DarkGray
> integer :: clr_Gray
> integer :: clr_LightSkyBlue
> integer :: clr_LightSkyGreen
> integer :: clr_SeaGreen
> integer :: clr_Tan
> integer :: clr_IndianRed
> integer :: clr_LightOliveGreen
> integer :: clr_CadetBlue
> integer :: clr_Beige
>
> In star/private/pgstar_support.f90 you'll find the RGB definitions of these colors and the assignments that set kipp colors.
>
> index = set_c(index, clr_Teal, 0.0, 0.5, 0.5)
> ....
>
> clr_no_mixing = clr_SeaGreen
> clr_convection = clr_LightSkyBlue
> clr_softened_convection = clr_LightSteelBlue
> clr_semiconvection = clr_SlateGray
> clr_thermohaline = clr_Lilac
> clr_overshoot = clr_Beige
> clr_rotation = clr_BrightBlue
> clr_rayleigh_taylor = clr_IndianRed
> clr_minimum = clr_Coral
> clr_anonymous = clr_Tan
>
>
> Edit this list and then rebuild mesa/star by doing cd star/test; ./mkx
>
> I believe that will do it, but if there are problems, let me know.
>
> Cheers,
> Bill
>
>
>
> On Oct 9, 2015, at 1:34 AM, Jakub Ostrowski wrote:
>
>> Hi,
>>
>> Is there any way to change colours in pgstar plots?
>>
>> Default colours usually look good on the black background during live preview but on the white background, when saved to a file, they’re just terrible. I attached an example: a kippenhahn diagram where I would like to change the colours of overshooting zone (at least this one) but pretty much every other zone could also benefit from some tweaking.
>>
>> So, is there any simple way to do it or do I need to create a Photoshop action to edit my eps files?
>>
>> Cheers,
>> Jakub
>>
>> <kipp_sample.eps>------------------------------------------------------------------------------
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
More information about the Mesa-users
mailing list