Giter Club home page Giter Club logo

cryplot's Introduction

naqvis github stats naqvis top-languages stats

cryplot's People

Contributors

naqvis avatar slimbenamor avatar stellarpower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cryplot's Issues

Palettes Enum is empty

Doing a shards install, I presume the downloading of palettes not completed successfully - upon build of the sample programs, I get:

Dependencies are satisfied
Building: sample1
Error target sample1 failed to compile:
Showing last frame. Use --error-trace for full trace.

In lib/cryplot/src/plot/palettes.cr:9:3

 9 | enum Palette
     ^
Error: enum Palette must have at least one member

Looking at the generated file:

  # Gnuplot color palettes adapted from https://github.com/Gnuplotting/gnuplot-palettes
  enum Palette
    def to_s(io : IO) : Nil
      io << self.to_s.downcase
    end

    def data
      Cryplot.palettes[self]
    end
  end

  class_getter palettes : Hash(Palette, String) { get_palettes }

  private def self.get_palettes
    pals = Hash(Palette, String).new

    pals
  end

Presume something with the download of the palettes repo hasn't worked or has changed since initial version(?).

I'm on Crystal 1.5.0-dev [792027789] (2022-05-25)

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.