192 Commits

Author SHA1 Message Date
Michael K. Borregaard
08bdd11410 New spy implementation 2017-10-09 21:19:32 +02:00
Michael Krabbe Borregaard
a80c7ada27 Merge pull request #1116 from jw3126/replaceD
replace d by plotattributes inside recipes
2017-10-02 14:46:11 +02:00
Michael K. Borregaard
cd958a6c68 Fix barwidth to minimum(diff) not mean(diff) 2017-10-02 08:53:41 +02:00
Jan Weidner
6e1cc8449b replace d by plotattributes inside recipes 2017-09-29 23:09:34 +02:00
Tim Holy
fe0ea168f3 histogram: ensure the number of bins is finite 2017-09-08 03:18:46 -05:00
Michael K. Borregaard
20ef846c38 move bracket in Sturges 2017-09-05 22:42:05 +02:00
Michael K. Borregaard
cd9f00300c Add correction for correlations 2017-09-05 16:02:52 +02:00
Michael K. Borregaard
d6e5b57a08 fix-2dhistogram-bins 2017-09-05 14:01:59 +02:00
Michael Krabbe Borregaard
04c20b84ad Merge pull request #1053 from mkborregaard/wand_edges
Make wand edges possible in statplots
2017-09-03 17:30:17 +02:00
Michael Krabbe Borregaard
04f5d7e411 Merge pull request #1064 from mkborregaard/fix-barwidth
Change default bar width to 0.8
2017-09-03 17:28:47 +02:00
Michael K. Borregaard
a1896d189c Revert ordering 2017-09-01 16:31:13 +02:00
Michael K. Borregaard
e47dde9f41 simplify
but creates type instability
2017-09-01 16:26:49 +02:00
Michael K. Borregaard
4be19ba6d8 Make wand edges possible in statplots 2017-09-01 15:53:26 +02:00
Michael K. Borregaard
d77be82a99 fix classic typo 2017-09-01 10:36:44 +02:00
Michael K. Borregaard
2dcf7fb3dd Change default bar width to 0.8 2017-08-31 23:58:07 +02:00
Michael K. Borregaard
62694e4a93 Make Freedman-Diaconis the default 2017-08-31 23:19:00 +02:00
Michael K. Borregaard
db82f22320 add the last docstrings 2017-08-18 09:48:36 +02:00
Christina Lee
2f1c70e49f fixing deprecation warning 2017-06-28 11:42:16 -07:00
Daniel Schwabeneder
e35b2ec3ff replace deprecated DateTime convert methods 2017-06-22 18:51:03 +02:00
Michael K. Borregaard
a1df325051 Remove all 0.5-compliant uses of the transpose operator (')
A horrible change, but one required by the metadata maintainers.
2017-06-11 22:25:15 +02:00
Michael Krabbe Borregaard
034613b50c Merge pull request #804 from ChrisRackauckas/_cycle
Change cycle => _cycle
2017-06-09 20:09:26 +02:00
ChrisRackauckas
49fc903334 fix last cycle 2017-06-09 08:43:01 -07:00
ChrisRackauckas
44b6157f17 cycle => _cycle 2017-06-09 08:43:01 -07:00
ChrisRackauckas
ac505ede44 move abstract types and make PlotRecipe on abstract type 2017-06-09 08:42:00 -07:00
Christopher Rackauckas
67e5598d28 Move the @userplot recipes
https://github.com/JuliaPlots/RecipesBase.jl/pull/16
2017-06-09 08:41:26 -07:00
Michael K. Borregaard
8f6b0c50d6 ignoreNaN => ignorenan 2017-06-08 12:54:25 +02:00
Michael K. Borregaard
3a2ee0fc72 Fix some deprecations 2017-06-07 23:55:30 +02:00
Daniel Schwabeneder
1a07c39fad changed spy plot example 2017-06-03 13:27:38 +02:00
Daniel Schwabeneder
ee23cb2185 grid --> false in spy recipe, removed info, added example 2017-06-03 01:14:25 +02:00
Daniel Schwabeneder
3d3ec2a194 add info about default markersize in spy recipe 2017-06-02 17:18:01 +02:00
Michael K. Borregaard
80d0d6ecc8 Change NaNMath implementation
We needed some functions to forward to Base methods, e.g. when non-`AbstractArray{<:AbstractFloat}` was passed
2017-06-01 22:19:38 +02:00
Michael Krabbe Borregaard
d29df4289e RFC: Ignore NaNs on 0.6 (like on 0.5): fixes #796 (#876)
Replaces min, max, minimum, mean, maximum and extrema with NaNMath versions in places where NaNs can occur.

To avoid returning NaN when there are NaNs in the Vector

* Also add maximum and minimum

* define _-prefaced versions of mean, maximum, minimum, extrema

* variable arg numbers for Base methods

* Different implementation of the override

* remove underscore from 2-arg versions of maximum

* some forgotten extrema -> _extrema

* Fix bug in _extrema definition

* edit comment

* replace min and max with _min and _max

* Base NaN-compliant functions on NaNMath


replace _min and _max with NaNMath versions

* Use NaNMath explicitly everywhere

* remove unneccesary NaNMath calls

* Ensure ceil does not error on NaN

* Added one more maximum in gr
2017-06-01 19:17:28 +02:00
Oliver Schulz
6e8bfe1ea6 Remove remnant debug output about binning 2017-05-31 23:07:10 +02:00
Oliver Schulz
746f96cdcd Remove ylims default setting for bar and histogram plots
Setting `ylims -> ...` doesn't play well with multiple series and cannot
be properly overridden by user.
2017-05-15 23:26:30 +02:00
Oliver Schulz
7843821109 Change default for bins to :auto (meaning 30 bins) 2017-05-08 11:37:02 +02:00
Oliver Schulz
67b4157e25 Improve data preprocessing for bar and histogram plots
Fixes broken bar-plots with non-numeric a-axes
2017-05-06 15:00:31 +02:00
Oliver Schulz
a523903c15 Remove remnant debugging output 2017-05-06 14:58:48 +02:00
Oliver Schulz
56a9389023 Fix log-scale for 1D bar/bin/histogram series types 2017-05-04 10:02:07 +02:00
Oliver Schulz
1188230641 Change histogram implementation, use StatsPlots, add new histogram styles
New series recipes for binned data:

* barbins
* scatterbins
* stepbins

New series recipes for histogram:

* barhist (histogram is now an alias for this)
* scatterhist
* stephist

Supports plotting 1D and 2D StatsBase histograms, seriestype can be set to
bar(bins), scatter(bins) or step(bins).

Also adds support for some common auto-binning modes:

* :sturges, :auto - Sturges' formula
* :sqrt - Square-root choice
* :rice - Rice Rule
* :scott - Scott's normal reference rule
* :fd - Freedman–Diaconis rule

Maybe these could be contributed to StatsBase at some point.

Error bars currently don't work correctly for scatterbins and scatterhist,
due to problem with manipulating error bars in a series recipe, but do work
for "plot(h::StatsBase.Histogram, seriestype = :scatter)" (works around
the problem by calling scatter directly, it seems that error bars can be
manipulated correctly in a type recipe).
2017-05-04 10:02:07 +02:00
ChrisRackauckas
3e7dd9bb77 tone down recipe 2017-04-17 22:15:13 -07:00
ChrisRackauckas
0be0824207 (complex) type recipe 2017-04-16 13:14:12 -07:00
ChrisRackauckas
7def4e8e73 add transformation option 2017-04-16 13:01:51 -07:00
ChrisRackauckas
9a59df793d coloring setup 2017-04-15 17:00:00 -07:00
ChrisRackauckas
1852ba99b3 force real x 2017-04-15 13:16:40 -07:00
ChrisRackauckas
0d665c661f complex recipe 2017-04-15 13:14:14 -07:00
Daniel Schwabeneder
034a1af649 restore bar_width behavior for date x axis 2017-03-29 23:20:30 +02:00
Daniel Schwabeneder
f2235abf08 Added logic to choose *round* DateTime tick positions 2017-03-06 23:52:59 +01:00
Michael K. Borregaard
7e41a2f40d sort colors 2017-03-01 22:18:34 +01:00
Michael K. Borregaard
1b468ba5d8 fix gr.text on showgradient 2017-02-28 12:35:08 +01:00
Michael K. Borregaard
cad96e652f fix error on gr 2017-02-27 22:45:14 +01:00