Skip to content

Commit

Permalink
fix text bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Feb 13, 2024
1 parent 4003b07 commit 47d9ad9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/basic_recipes/text.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function plot!(plot::Text)
pop!(attrs, :text)
pop!(attrs, :align)
pop!(attrs, :color)
pop!(attrs, :calculated_colors)

t = text!(plot, glyphcollections; attrs..., position = positions)
# remove attributes that the backends will choke on
Expand Down Expand Up @@ -158,8 +159,10 @@ function plot!(plot::Text{<:Tuple{<:AbstractArray{<:Tuple{<:Any, <:Point}}}})

attrs = plot.attributes
pop!(attrs, :position)
pop!(attrs, :calculated_colors)
pop!(attrs, :text)

text!(plot, positions; text = strings, attrs...)
text!(plot, positions; attrs..., text = strings)

# update both text and positions together
on(plot, strings_and_positions) do str_pos
Expand Down

0 comments on commit 47d9ad9

Please sign in to comment.