168 Commits

Author SHA1 Message Date
t-bltg
e9949251a6
Merge pull request #3577 from t-bltg/log_bis
GR: rework automatic major/minor ticks for log scales
2021-07-06 20:49:06 +02:00
t-bltg
16e41f0690 rework phantom ticks for log scales - add minorgrid to ex5 2021-07-06 19:15:34 +02:00
t-bltg
68a56fee91 fix when ticks is nothing - format - minor updates 2021-07-05 22:47:21 +02:00
t-bltg
ee316e2913 GR: rework automatic major/minor ticks for log scales 2021-07-04 21:58:13 +02:00
t-bltg
bba971f7ea
GR: fix axis flip / mirror in 3D plots (#3584)
* fix axis flip in 3D plots

* add mwe as example - fix needs_3d_axes

* fix major / minor grids when mirroring

Co-authored-by: t-bltg <t-bltg@users.noreply.github.com>
2021-06-30 22:50:09 +02:00
t-bltg
7b0066c433
simplify major / minor grid segments (#3586)
Co-authored-by: t-bltg <t-bltg@users.noreply.github.com>
2021-06-25 21:10:35 +02:00
Fred Callaway
019a742c84
Respect :widen when passing :lims (#3552)
* Respect :widen when passing :lims

Previously, the limits were not widened when passing a tuple or
:round to lims (ignoring the widen argument). Fixes #3339

* Add default widen=:auto, which matches default before 43e9a342

* If widen is a Bool, it always determines whether widening occurs.
* If widen is :auto (the defualt), widening occurs for appropriate
  seriestypes, unless lims were set manually

* Update test/test_axes.jl

Co-authored-by: Simon Christ <SimonChrist@gmx.de>

* fix docs for lims and widen interaction

* Update .zenodo.json

* Update test/test_axes.jl

xlims != ylims

Co-authored-by: Simon Christ <SimonChrist@gmx.de>

Co-authored-by: Simon Christ <SimonChrist@gmx.de>
2021-06-07 20:46:49 +02:00
Simon Christ
6a62d96751
axis limits = :symmetric (#2600)
* allow axis-lims = :symmetric

* remove show

* add test
2021-06-03 17:35:42 +02:00
Daniel Schwabeneder
7bb2132b18 add tick_direction=:none option to hide tick labels 2021-04-28 20:27:50 +02:00
Benoit Pasquier
8cf268a390
Add ticks getter functions (#3435)
* Add ticks getter functions

* Add tick-getter functions for Plot objects

* Fix boiler-plate code in get_ticks

* Bump minor version + add tests

* Remove kwargs and add subplot test

* Add docstrings

* bump minor version
2021-04-23 08:52:17 +02:00
hustf
727ced25f1 modified: src/axes.jl #3397 fix varname
modified:   test/test_recipes.jl #3397 test all framestyles effect
2021-03-29 12:29:47 +02:00
David MacMahon
ddf6aa9760 Make Plots framework aware of new :stepmid option 2021-03-24 23:24:31 -07:00
Zhanibek
c0824bdc62
Colorbar enhancements (#3346)
* CompatHelper: bump compat for "Showoff" to "1.0"

* fix series-segments for empty series

* fix wireframe on pyplot

* colorbar redesign

* minimal working version

* reduce code duplication for colorbar ticks

* fix aspect_ratio in GR with legend=:outertopright

* fix GR test failure

* new release [skip ci]

* colorbar scale supported

* Added weights example to ? histogram

Helps to clarify the use of weights (which differs from StatsBase functions)

* Update precompile_*.jl file

* minor version bump [skip ci]

* working prototype

* fixed formatting, added colorbar docs

* colorbar redesign

* minimal working version

* reduce code duplication for colorbar ticks

* fix GR test failure

* colorbar scale supported

* working prototype

* fixed formatting, added colorbar docs

Co-authored-by: Daniel Schwabeneder <daschw@disroot.org>
2021-03-25 11:22:07 +09:00
William Thompson
97c43eb031 Fix typo to allow minor ticks in 3D plots 2021-01-31 11:47:15 -08:00
Daniel Schwabeneder
fa8d437836 widen axis limits 2021-01-22 18:16:13 +01:00
Thatcher Chamberlin
9ab4c31d5c Added comments about possible alternate solutions 2020-12-07 10:51:49 -05:00
Thatcher Chamberlin
e9e6750481 Removed a println 2020-12-07 10:51:49 -05:00
Thatcher Chamberlin
bb3e053eb3 Added fix for case where lims are Date/DateTime s 2020-12-07 10:51:49 -05:00
Daniel Schwabeneder
16b9fc08ac more regular automatic categorical ticks 2020-10-27 20:16:45 +01:00
Daniel Schwabeneder
44bd1812e0 don't run optimize_ticks multiple times 2020-09-18 09:43:53 +02:00
Daniel Schwabeneder
1e536dda4b reorganize axes drawing 2020-09-18 09:43:21 +02:00
yha
449d35ebf2 Tick label formatting fixes 2020-08-22 21:26:35 +03:00
isentropic
8b2d3e926a
better exopnents (#2786) 2020-06-17 11:18:03 +02:00
Simon Christ
42e2266530
Fix showaxis (#2733)
* also replace axis syms

* include test_axes [skip ci]

* Create test_axes.jl

* process showaxis
2020-05-26 20:40:44 +02:00
Daniel Schwabeneder
8b897c3460 implement pie series recipe 2020-04-28 20:48:09 +02:00
Simon Christ
2373dda3c4
allow :auto as limit (#2599) 2020-04-19 17:05:04 +02:00
Anshul Singhvi
d04bb42f7b
Check finiteness of upper and lower limit in minor ticks 2020-04-13 14:49:23 +05:30
Daniel Schwabeneder
4c43f0ea2f be explicit about RecipesPipeline imports 2020-04-10 19:06:53 +02:00
Daniel Schwabeneder
92d8bd7836 move some recipes to recipepipeline 2020-04-10 16:09:49 +02:00
Daniel Schwabeneder
f73b281996 extract the recipe pipeline into separate submodule 2020-04-10 16:09:49 +02:00
Daniel Schwabeneder
f180c666d2 rename some functions 2020-04-10 16:09:49 +02:00
Daniel Schwabeneder
076de033fd fix default with axis args 2020-03-29 15:39:44 +02:00
Daniel Schwabeneder
5af5ec7313 more AKWs 2020-02-08 23:29:09 +01:00
yha
366d598ff0 Implement plotattributes with defaults. Fixes "-->" in series recipes. 2020-01-29 01:25:04 +02:00
Daniel Schwabeneder
c5fe90d135 move zaxis to the left 2019-12-13 14:16:05 +01:00
Daniel Schwabeneder
84b108f6d0 3d axes grid and ticks in gr 2019-12-13 14:16:04 +01:00
Daniel Schwabeneder
4263ced69b implement axes_drawing_info_3d 2019-12-13 14:16:04 +01:00
Daniel Schwabeneder
05ef841d63 simplify axes_drawing_info 2019-12-13 14:16:04 +01:00
Michael Kraus
044daf08d4 generalized array fixes replacing length() and size() with eachindex() and axes(), etc. 2019-12-05 10:09:07 +01:00
Daniel Schwabeneder
e0148ba1a8 add checks in get_minor_ticks 2019-12-03 14:01:36 +01:00
Daniel Schwabeneder
798d78813a allow minorgrid = true for only two tick values 2019-10-31 14:28:19 +01:00
Ben Ide
3b962ffb08 added latex formatter for ticks (solves #2042, #2147) 2019-09-18 19:09:43 -04:00
Chris Rackauckas
82dd5bf3eb != nothing -> !== nothing 2019-08-17 14:45:54 -04:00
Chris Rackauckas
f12f6db310 use === nothing
Should decrease compile times
2019-08-17 14:17:27 -04:00
Daniel Schwabeneder
63f6128c87 respect user lims 2019-06-13 23:03:19 +02:00
Daniel Schwabeneder
9f9ac4ec92 bbox_ratio not required 2019-06-13 18:50:59 +02:00
Daniel Schwabeneder
fadc0bf6c7 don't let aspect_ratio impact subplot size 2019-06-12 22:49:12 +02:00
Michael Krabbe Borregaard
0c67a61e7d fix io 2019-04-15 09:07:52 +02:00
Daniel Schwabeneder
5ec80ad1f1 fix multiple drawing of discrete ticks 2019-03-27 17:37:47 +01:00
Daniel Schwabeneder
d83666bed3
Merge pull request #1953 from daschw/polar-axis
put radius 0 at the center for polar plots (fix #1813)
2019-03-14 10:27:49 +01:00