AlexsLemonade / OpenPBTA-analysis

The analysis repository for the Open Pediatric Brain Tumor Atlas Project
Other
100 stars 67 forks source link

Figure 3 with larger text #1750

Closed sjspielman closed 1 year ago

sjspielman commented 1 year ago

Closes #1738

This PR updates Figure 3 with larger text all around. I did some manual changes in illustrator as well as code changes. Code changes include:

Let me know what you think of this first go!

sjspielman commented 1 year ago

@jharenza I don't see any color loss on my end when opened on my computer in preview, but this can be heavily affected by the viewer you use to look at the files. Maybe the github view (if that's what you're looking at?) is just a little dulled?

jharenza commented 1 year ago

So bizarre! It is showing in my preview and adobe for the PDF, but not the panels:

Screenshot 2023-04-26 at 2 19 49 PM
sjspielman commented 1 year ago

Interesting... When I re-export after making these changes from review shortly, I'll see if there's another setting in there!

jharenza commented 1 year ago

compare to top right which is in master:

Screenshot 2023-04-26 at 2 22 29 PM

Mainly seeing in barplots. The others are dull bc of the alpha, and I see that in almost all pdfs. Just that the bars jumped out at me!

jaclyn-taroni commented 1 year ago

CMYK vs. RGB is the first thing I'd check.

sjspielman commented 1 year ago

@jharenza how do these look to you now? I did two things to try and fix colors -

jharenza commented 1 year ago

@jharenza how do these look to you now? I did two things to try and fix colors -

Looking the same to me 😬

jashapiro commented 1 year ago

@jharenza how do these look to you now? I did two things to try and fix colors -

Looking the same to me 😬

Also looking dull to me...

sjspielman commented 1 year ago

En route to re-importing PDFs into AI in the first place with the correct color settings already turned on, stay tuned!

sjspielman commented 1 year ago

See https://github.com/AlexsLemonade/OpenPBTA-analysis/pull/1750/commits/760fca5464fde22b7d9441ef51846feb1479330f! 🎨 🎉

(edit - just saw that ATRT text in D needs to be fixed, doing now, but the colors are better!) (edit 2 - omg and the A legend! i was just excited about the colors apparently...!)

jashapiro commented 1 year ago

(edit 2 - omg and the A legend! i was just excited about the colors apparently...!)

I was about to comment... The Illustrator!

jharenza commented 1 year ago

yay colors!

jharenza commented 1 year ago

I guess I didn't realize the colors in some other figures were dull until the barplots came up dull. (They have been dull the whole time, I think, eg figure5 in PR now)...

sjspielman commented 1 year ago

They have been dull the whole time, I think, eg figure5 in PR now

I'm going to go back and check it all!!!

I think this one is about ready now!

sjspielman commented 1 year ago

@jashapiro leaving this open in case you wanted another look, lmk!

sjspielman commented 1 year ago

what happened to my lovely gradient on the co-occurrance score legend?

This is a frustrating indeed! I've played around with some export settings, but nothing is really working. It also seems that when I import the PDF figure into Illustrator in the first place, the gradient is already choppy from the beginning. I'm going to try re-exporting the plot with useDingbats = FALSE which maaayyy help..

Edit - did not help.. Maybe @envest has a thought or two about preserving smooth gradients in Illustrator?

envest commented 1 year ago

Maybe @envest has a thought or two about preserving smooth gradients in Illustrator?

Sorry nothing specific... this was my most promising find on StackExchange 🤷

So it's fine in the original PDF but not after integration into Illustrator? huh

sjspielman commented 1 year ago

Yep, for your viewing pleasure.. edit wow this shows up rather largely....but you get the point!

https://user-images.githubusercontent.com/4701111/234904391-b7835873-6f84-4e74-bc46-e1c916f8f68a.mov

sjspielman commented 1 year ago

In conclusion, we have decided it is what it is!