Skip to content

Instantly share code, notes, and snippets.

Zachary P Christensen Tokazama

Block or report user

Report or block Tokazama

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AxisIndicesGraphs.jl
module AxisIndicesGraphs
using AxisIndices, LightGraphs, SimpleWeightedGraphs
using Base: to_index, @propagate_inbounds
struct AxisIndicesGraph{T,G<:AbstractGraph{T},AI} <: AbstractGraph{T}
Tokazama / plot_tick_shortcuts.jl
Last active Jan 23, 2020
Easier interaction with plots.
View plot_tick_shortcuts.jl
Returns the all the axis tick labels.
function ticklabels(scene)
axis = scene[Axis]
@assert !isnothing(axis)
return axis.ticks.ranges_labels[][2]
Tokazama / named_array_traits.jl
Last active Sep 18, 2019
Ideas for unifying array naming conventions in Julia.
View named_array_traits.jl
import Base: tail, to_dim
struct Dim{Sym} end
const TimeDim = Dim{:time}()
const ColorDim = Dim{:color}()
struct HasDimNames{T} end
HasDimNames(x::T) where T = HasDimNames(T)
HasDimNames(::Type{T}) where T = HasDimNames{false}()
You can’t perform that action at this time.