Skip to content
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

Logo #6

Open
aTrotier opened this issue Dec 10, 2024 · 2 comments
Open

Logo #6

aTrotier opened this issue Dec 10, 2024 · 2 comments

Comments

@aTrotier
Copy link
Collaborator

aTrotier commented Dec 10, 2024

using CairoMakie
using QMRIColors

cmap_T1 = relaxationColorMap("T1")
cmap_T2 = relaxationColorMap("T2")
T = collect(LinRange(0,100,256))

T2 = 10
ST2 = exp.(-T./T2)
lines(T,ST2,color=cmap_T1)

T1 = 30
ST1 = 1 .- 2*exp.(-T./T1)

begin
  f=Figure()
  ax = Axis(f[1,1])
  lines!(ax,T,ST2,color=cmap_T1,linewidth=20)
  lines!(ax,T,ST1,color=cmap_T2,linewidth=20)
  hidexdecorations!(ax)
  f
end

@mfuderer I'm searching an idea for a logo. Any thoughts ?

image
@mfuderer
Copy link
Collaborator

mfuderer commented Dec 11, 2024 via email

@aTrotier
Copy link
Collaborator Author

aTrotier commented Dec 11, 2024

image
using CairoMakie
using QMRIColors
using Colors

M = 50

cmap_T1 = relaxationColorMap("T1")
cmap_T2 = relaxationColorMap("T2")
T = collect(LinRange(0,100,100))

T2 = 100
ST2 = M*exp.(-T./T2)
lines(T,ST2,color = 1:length(T), colormap = cmap_T2)

T1 = 20
ST1 = M*(1 .- 2*exp.(-T./T1))


begin
  f=Figure(figure_padding = 0,size=(400,400))
  ax = Axis(f[1,1], backgroundcolor=:black, aspect = 1)
  scatter!(ax,T,ST2,color = 1:length(T), colormap = cmap_T2,markersize=20)
  scatter!(ax,T,ST1,color = 1:length(T), colormap = cmap_T1,markersize=20)
 


  text!(ax,20,-50,text="QMRI\nColors",
            color=:white,
            fontsize=100)

            # add julia dot
 #           arc!(ax,Point2f(75,10), 4, -π, π,color=RGB(0.22,0.596,0.149),fill=true)
            pos = (73.5,-1)
            text!(ax,Point2f(3+pos[1],5.5+pos[2]),text="", fontsize=50,color=RGB(0.22,0.596,0.149))
            text!(ax,Point2f(-0.5+pos[1],0+pos[2]),text="", fontsize=50,color=RGB(0.796,0.235,0.2))
            text!(ax,Point2f(6.5+pos[1],0+pos[2]),text="", fontsize=50,color=RGB(0.584,0.345,0.698))

            
            xlims!(ax,(0,maximum(T)))
            ylims!(ax,(-M,M))

            hidedecorations!(ax)
            tightlimits!(ax)
            resize_to_layout!(f)
            f
end
save("test.svg",f)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants