# Makie markercolor magic

**URL:** <https://discourse.julialang.org/t/makie-markercolor-magic/94760>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [February 17, 2023, 12:45am UTC](https://discourse.julialang.org/t/makie-markercolor-magic/94760 "2023-02-17T00:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfarmer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dfarmer/32/21616_2.png) [@dfarmer](https://discourse.julialang.org/u/dfarmer)\
**Post date:** [February 17, 2023, 12:45am UTC](https://discourse.julialang.org/t/makie-markercolor-magic/94760/1 "2023-02-17T00:45:57Z")

</div>

I’m fishing a little here, but yesterday I loaded up a bunch of data in a StructArray and made a scatterline plot `scatterlines(field1, markercolor = field2)` and it worked and I couldn’t believe how awesome everything was. Today I foolishly messed around with which packages were in my project.toml and updated packages and when I run that line of code that produced my nice plot yesterday today it says it can’t convert Vector{Float32} to Union{RGBA…} etc field2 is actually of type UInt8 and field1 is Float32

I basically understand the error, but that code worked yesterday (as is arguably how it should work) – I’m hoping maybe someone more familiar with Makie’s development might be able to explain that some recent release changed the behavior or something because otherwise I can’t figure out what magic disappeared to cause it to fail now (or maybe to tell me the results from yesterday were weird and shouldn’t have worked).

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [February 17, 2023, 3:50pm UTC](https://discourse.julialang.org/t/makie-markercolor-magic/94760/2 "2023-02-17T15:50:00Z")

</div>

The type conversion in scatterlines is to strict to allow anything but concrete color types. [Fix color conversion in scatterlines by ffreyer · Pull Request #2691 · MakieOrg/Makie.jl · GitHub](https://github.com/MakieOrg/Makie.jl/pull/2691) fixes that

It got changed about a year ago, so you probably updated from a rather old version of Makie.
