Skip to content

Should convert_single_argument be in MakieCore? #3645

Closed
@musoke

Description

@musoke
  • are you running newest version (version from docs) ?
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
  • What platform + GPU are you on?
julia> versioninfo()
Julia Version 1.10.1
Commit 7790d6f0641 (2024-02-13 20:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 16 default, 0 interactive, 8 GC (on 16 virtual cores)
Environment:
  LD_LIBRARY_PATH = /snap/alacritty/70/usr/lib/x86_64-linux-gnu:/snap/alacritty/70/lib/x86_64-linux-gnu:/snap/alacritty/70/usr/lib/x86_64-linux-gnu/dri
  JULIA_NUM_THREADS = auto
$ nvidia-smi -L
GPU 0: NVIDIA RTX A3000 Laptop GPU (UUID: GPU-e990a63d-4550-5bf1-f637-e85571910ab0)

I am not quite sure if this is a bug report or a feature request.

The current docs say:

If you're a package developer, it's possible to add recipes without adding all of Makie.jl as a dependency. Instead, you can use the MakieCore package, which is a lightweight package which provides all the necessary elements to create a recipe, such as the @recipe macro, convert_arguments and convert_attribute functions, and even some basic plot type definitions.

convert_single_argument is one of the main functions that can be used in this context but it is not part of MakieCore. This means that developers need to import the full Makie package before it can be implemented for new types. Perhaps this is intentional - is this to discourage package developers from using convert_single_argument instead of convert_arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    MakieBackend independent issues (Makie core)bugrecipes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions