Giter Site home page Giter Site logo

foxplot's People

Contributors

stephane-caron avatar ubgk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

foxplot's Issues

Deterministic color mapping

It is a minor inconvenience when I plot the same fields in two different log files (e.g. when I run the same experiment with different conditions) and get different color mappings. The color mapping is random now and different every time.

It should be very easy to get a consistent mapping using ordered sets (As Python sets are not ordered by default):

left_labels = set(left_axis.keys())

Although the inconvenience is minor, the fix is very easy as well. Do you think it's a desirable property? If so, I'll create a PR.

Error in particular JSON file

The JSON file in test2.zip yields the following error:

Traceback (most recent call last):
  File "/home/nelson/.local/bin/foxplot", line 8, in <module>
    sys.exit(main())
  File "/home/nelson/.local/lib/python3.8/site-packages/foxplot/cli.py", line 147, in main
    series.read_from_file(file)
  File "/home/nelson/.local/lib/python3.8/site-packages/foxplot/series.py", line 156, in read_from_file
    new_field = os.path.join(old_field, subfield)
  File "/usr/lib/python3.8/posixpath.py", line 90, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.8/genericpath.py", line 152, in _check_arg_types
    raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'int'

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.