-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix float issues for CairoMakie by using Float64 #2573
Changes from 37 commits
0d86adc
1f90715
b24313c
13ce741
1069754
d561a3e
d756561
23e7cd1
feca2c7
230e8ec
77998bc
9d8e919
d7e2306
1084f4a
ee1022b
48d9b97
5811c01
c2f0109
cbf702c
dbccd69
d7f5693
e955f31
7cb6aac
a3b925f
c0e2db9
05ee945
4e1afcb
53c8e21
33251b0
74b689b
07c411d
9814af5
3fbd6ab
a35a108
523a514
b1a71a6
69295e2
327b574
75b600e
16b0204
f0fbfac
2c22614
26c4dbc
b14fc0c
c021cfd
8ade215
e5807b1
75583e9
d859984
36e08f6
2ada40e
bada567
ad056b3
e49b2ad
84cdab5
a1cfa62
c2daeaf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -15,11 +15,11 @@ opengl_postfix(T) = error("Object $T is not a supported uniform element type") | |||||
|
||||||
|
||||||
opengl_prefix(x::Type{T}) where {T <: Union{FixedPoint, Float32, Float16}} = "" | ||||||
opengl_prefix(x::Type{T}) where {T <: Float64} = "d" | ||||||
opengl_prefix(x::Type{T}) where {T <: Float64} = error("Float64") # "d" | ||||||
opengl_prefix(x::Type{Cint}) = "i" | ||||||
opengl_prefix(x::Type{T}) where {T <: Union{Cuint, UInt8, UInt16}} = "u" | ||||||
|
||||||
opengl_postfix(x::Type{Float64}) = "dv" | ||||||
opengl_postfix(x::Type{Float64}) = error("Float64") # "dv" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
opengl_postfix(x::Type{Float32}) = "fv" | ||||||
opengl_postfix(x::Type{Cint}) = "iv" | ||||||
opengl_postfix(x::Type{Cuint}) = "uiv" | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,7 +238,9 @@ function Makie.plot!( | |
push!(bar_tos[], s.close) | ||
end | ||
append!(colors[], [x.close > x.open for x in stockvalues]) | ||
colors[] = colors[] | ||
notify(linesegs) | ||
notify(colors) | ||
return | ||
Comment on lines
+241
to
+243
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before this worked without |
||
end | ||
|
||
# connect `update_plot` so that it is called whenever `times` | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -89,6 +89,13 @@ const RGBAf = RGBA{Float32} | |||||||
const RGBf = RGB{Float32} | ||||||||
const NativeFont = FreeTypeAbstraction.FTFont | ||||||||
|
||||||||
const Vec2e = Vec2{Float64} | ||||||||
const Vec3e = Vec3{Float64} | ||||||||
const Vec4e = Vec4{Float64} | ||||||||
const Point2e = Point2{Float64} | ||||||||
const Point3e = Point3{Float64} | ||||||||
const Point4e = Point4{Float64} | ||||||||
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
for completeness |
||||||||
const ASSETS_DIR = RelocatableFolders.@path joinpath(@__DIR__, "..", "assets") | ||||||||
assetpath(files...) = normpath(joinpath(ASSETS_DIR, files...)) | ||||||||
|
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.