Comments (6)
you can specify exactly where to put ticks with Guide.xticks
: http://gadflyjl.org/stable/gallery/guides/#[Guide.xticks](@ref),-[Guide.yticks](@ref)
from gadfly.jl.
ideally, at some point it would be nice to hoist granularity_weight
and friends into the Theme struct and/or kwargs to Guide.{x,y}ticks
.
from gadfly.jl.
@bjarthur Thanks for your reply! I had replied to a StackExchange with that answer, but I was wondering/hoping there would be something better to tell them.
Alas! Oh well! Thank you anyway
from gadfly.jl.
i'd forgotten that granularity_weight
can be specified in Stat.xticks
:
help?> Stat.xticks
Stat.xticks[(; ticks=:auto, granularity_weight=1/4, simplicity_weight=1/6,
coverage_weight=1/3, niceness_weight=1/4)]
Compute an appealing set of x-ticks that encompass the data by transforming the x, xmin,
xmax, xintercept and xend aesthetics into the xtick and xgrid aesthetics. ticks is a vector
of desired values, or :auto to indicate they should be computed. the importance of having a
reasonable number of ticks is specified with granularity_weight; of including zero with
simplicity_weight; of tightly fitting the span of the data with coverage_weight; and of
having a nice numbering with niceness_weight.
it doesn't provide a way to directly specify the number of ticks though.
from gadfly.jl.
Could this be reopened? I think that a good interface would be to allow the user to provide an interval for Gadfly to choose the number of tick marks from, for example: there should be no less than four ticks and no more than ten.
My issue in particular is that some of my plots have only a single tick mark on the x-axis.
from gadfly.jl.
Scale.x_continuous
actually accepts the parameters minticks
and maxticks
, and those are actually documented. The parameters don't seem to affect my plots though, I think that Gadfly maybe just ignores them for some reason?
from gadfly.jl.
Related Issues (20)
- Gadfly not working for simple point plot HOT 2
- tests and building docs currently failing HOT 3
- typos HOT 3
- Question re wrapping Gadfly.jl functionality in Tidier.jl HOT 8
- Wrong x-axis upper limit with date ? HOT 6
- Please add a feature to vary the thickness of the line in Geom.line and Geom.path HOT 1
- trying to use `Stat.yticks` causes `MethodError`
- Gadfly histogram ignore the bincount (and how to remove background lines) HOT 2
- Gadfly pop up not working in Ubuntu - workaround HOT 1
- How to set the width of the bar? HOT 1
- How to supress output to stdout? HOT 8
- Zooming broken on faceted plots
- Hexbin plotting out of range
- tspan in svg output is malformated HOT 5
- colorkey min/max values HOT 1
- Can't add title to 2D function plot HOT 1
- Gadfly v1.4.0 ?
- SVG does not work with Gadfly 1.4.0 and Compose 0.9.5 HOT 6
- SVG generation has a XML mistake on tag <tspan>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gadfly.jl.