From e824f13de66ec301101c4d6393498be07f2cba09 Mon Sep 17 00:00:00 2001 From: emmy <52672675+emmettgb@users.noreply.github.com> Date: Tue, 21 Feb 2023 13:36:47 -0600 Subject: [PATCH] Add files via upload --- Manifest.toml | 16 +++++++++++----- Project.toml | 2 ++ src/Prrty.jl | 7 ++++++- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Manifest.toml b/Manifest.toml index 6382098..7c316d7 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -23,6 +23,12 @@ git-tree-sha1 = "9c209fb7536406834aa938fb149964b985de6c83" uuid = "944b1d66-785c-5afd-91f1-9de20f533193" version = "0.7.1" +[[deps.Contexts]] +deps = ["Random", "Toolips", "ToolipsSVG"] +path = "../Contexts" +uuid = "f9ffe950-3109-4ed3-b2df-b0b3d544a50d" +version = "0.1.0" + [[deps.Crayons]] git-tree-sha1 = "249fe38abf76d48563e2f4556bebd215aa317e15" uuid = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f" @@ -113,9 +119,9 @@ version = "1.3.3" [[deps.OpenSSL_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "f6e9dba33f9f2c44e08a020b0caf6903be540004" +git-tree-sha1 = "9ff31d101d987eb9d66bd8b176ac7c277beccd09" uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95" -version = "1.1.19+0" +version = "1.1.20+0" [[deps.ParseNotEval]] deps = ["Dates"] @@ -191,7 +197,7 @@ version = "0.1.1" [[deps.ToolipsSVG]] deps = ["Toolips", "ToolipsSession"] -git-tree-sha1 = "963c63bd4c6578909f18c010de232bd063d82807" +git-tree-sha1 = "efad29d31508a1a61208e9285f870399948b304c" repo-rev = "main" repo-url = "https://github.com/ChifiSource/ToolipsSVG.jl" uuid = "8ae86ec9-919d-4ece-9a6d-09b7d28dae11" @@ -210,9 +216,9 @@ uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" version = "0.9.11" [[deps.URIs]] -git-tree-sha1 = "ac00576f90d8a259f2c9d823e91d1de3fd44d348" +git-tree-sha1 = "074f993b0ca030848b897beff716d93aca60f06a" uuid = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4" -version = "1.4.1" +version = "1.4.2" [[deps.UUIDs]] deps = ["Random", "SHA"] diff --git a/Project.toml b/Project.toml index d2204c4..86786f3 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,9 @@ authors = ["emmac <emmettgb@gmail.com>"] version = "0.1.0" [deps] +Contexts = "f9ffe950-3109-4ed3-b2df-b0b3d544a50d" Toolips = "a47e2ad8-fcf7-417c-9746-32b9bdf220bd" ToolipsDefaults = "1710be6b-e895-498d-ba35-e3ff0dac7995" ToolipsMarkdown = "33f7ff50-f2f2-41f0-8a96-482dce5c1514" ToolipsSVG = "8ae86ec9-919d-4ece-9a6d-09b7d28dae11" +ToolipsSession = "2fe55384-55bc-4df3-9d59-c817d405cd05" diff --git a/src/Prrty.jl b/src/Prrty.jl index 89eef7a..5bda16f 100644 --- a/src/Prrty.jl +++ b/src/Prrty.jl @@ -8,7 +8,7 @@ include("context_plotting.jl") scatter(x::Vector{<:Number}, y::Vector{<:Number}, width::Int64 = 500, height::Int64 = 500, margin::Pair{Int64, Int64} = 0 => 0; divisions::Int64 = 4, - title = "", args ...) = begin + title::String = "", args ...) = begin con::Context = Context(width, height, margin) group!(con, "plotbase") do g::Group axes!(con) @@ -20,5 +20,10 @@ height::Int64 = 500, margin::Pair{Int64, Int64} = 0 => 0; divisions::Int64 = 4, con end +line(x::Vector{<:Number}, y::Vector{<:Number}, width::Int64 = 500, +height::Int64 = 500, margin::Pair{Int64, Int64} = 0 => 0; divisions::Int64 = 4, +title::String = "", args ...) = begin + con::Context = Context(width, height, margin) +end include("Dashboards.jl") end # module