{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaPlots/Plots.jl/issues/1371","repository_url":"https://api.github.com/repos/JuliaPlots/Plots.jl","labels_url":"https://api.github.com/repos/JuliaPlots/Plots.jl/issues/1371/labels{/name}","comments_url":"https://api.github.com/repos/JuliaPlots/Plots.jl/issues/1371/comments","events_url":"https://api.github.com/repos/JuliaPlots/Plots.jl/issues/1371/events","html_url":"https://github.com/JuliaPlots/Plots.jl/issues/1371","id":292128231,"number":1371,"title":"Feature request: link/share axes (like sharex in matplotlib or linkaxes in Matlab)","user":{"login":"pbouffard","id":231346,"avatar_url":"https://avatars2.githubusercontent.com/u/231346?v=4","gravatar_id":"","url":"https://api.github.com/users/pbouffard","html_url":"https://github.com/pbouffard","followers_url":"https://api.github.com/users/pbouffard/followers","following_url":"https://api.github.com/users/pbouffard/following{/other_user}","gists_url":"https://api.github.com/users/pbouffard/gists{/gist_id}","starred_url":"https://api.github.com/users/pbouffard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbouffard/subscriptions","organizations_url":"https://api.github.com/users/pbouffard/orgs","repos_url":"https://api.github.com/users/pbouffard/repos","events_url":"https://api.github.com/users/pbouffard/events{/privacy}","received_events_url":"https://api.github.com/users/pbouffard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"apalugniok","id":22132297,"avatar_url":"https://avatars1.githubusercontent.com/u/22132297?v=4","gravatar_id":"","url":"https://api.github.com/users/apalugniok","html_url":"https://github.com/apalugniok","followers_url":"https://api.github.com/users/apalugniok/followers","following_url":"https://api.github.com/users/apalugniok/following{/other_user}","gists_url":"https://api.github.com/users/apalugniok/gists{/gist_id}","starred_url":"https://api.github.com/users/apalugniok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apalugniok/subscriptions","organizations_url":"https://api.github.com/users/apalugniok/orgs","repos_url":"https://api.github.com/users/apalugniok/repos","events_url":"https://api.github.com/users/apalugniok/events{/privacy}","received_events_url":"https://api.github.com/users/apalugniok/received_events","type":"User","site_admin":false},"assignees":[{"login":"apalugniok","id":22132297,"avatar_url":"https://avatars1.githubusercontent.com/u/22132297?v=4","gravatar_id":"","url":"https://api.github.com/users/apalugniok","html_url":"https://github.com/apalugniok","followers_url":"https://api.github.com/users/apalugniok/followers","following_url":"https://api.github.com/users/apalugniok/following{/other_user}","gists_url":"https://api.github.com/users/apalugniok/gists{/gist_id}","starred_url":"https://api.github.com/users/apalugniok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apalugniok/subscriptions","organizations_url":"https://api.github.com/users/apalugniok/orgs","repos_url":"https://api.github.com/users/apalugniok/repos","events_url":"https://api.github.com/users/apalugniok/events{/privacy}","received_events_url":"https://api.github.com/users/apalugniok/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-01-27T15:17:44Z","updated_at":"2018-02-02T16:09:09Z","closed_at":null,"author_association":"NONE","body":"I have tried several backends that have interactive pan/zoom (PlotlyJS, PyPlot, InspectDR) and the `link` kwarg doesn't appear to have any effect in them. I'm not sure about the others but using PyPlot directly does work, e.g.:\r\n\r\n```\r\njulia> using PyPlot\r\n\r\njulia> ax1=subplot(2,1,1)\r\nPyObject <matplotlib.axes._subplots.AxesSubplot object at 0x12c6d6fd0>\r\n\r\njulia> plot(randn(100,1))\r\n1-element Array{PyCall.PyObject,1}:\r\n PyObject <matplotlib.lines.Line2D object at 0x139bb3dd0>\r\n\r\njulia> ax2=subplot(2,1,2, sharex=ax1)\r\nPyObject <matplotlib.axes._subplots.AxesSubplot object at 0x139c0fcd0>\r\n\r\njulia> plot(randn(100,1))\r\n1-element Array{PyCall.PyObject,1}:\r\n PyObject <matplotlib.lines.Line2D object at 0x139c49c90>\r\n```\r\n\r\n```\r\n$ julia\r\n               _\r\n   _       _ _(_)_     |  A fresh approach to technical computing\r\n  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org\r\n   _ _   _| |_  __ _   |  Type \"?help\" for help.\r\n  | | | | | | |/ _` |  |\r\n  | | |_| | | | (_| |  |  Version 0.6.2 (2017-12-13 18:08 UTC)\r\n _/ |\\__'_|_|_|\\__'_|  |  Official http://julialang.org/ release\r\n|__/                   |  x86_64-apple-darwin14.5.0\r\n\r\njulia> Pkg.status()\r\n28 required packages:\r\n - Atom                          0.6.6\r\n - BenchmarkTools                0.2.3\r\n - Colors                        0.8.2\r\n - Cxx                           0.2.0\r\n - Example                       0.4.1\r\n - GLVisualize                   0.6.1+             master\r\n - GR                            0.25.0\r\n - Gaston                        0.7.0\r\n - Geodesy                       0.4.0\r\n - GeometryTypes                 0.4.4\r\n - IJulia                        1.6.2\r\n - ImageMagick                   0.5.0\r\n - InspectDR                     0.2.4\r\n - MAT                           0.4.0\r\n - ModernGL                      0.2.1\r\n - PkgDev                        0.1.6\r\n - PlotlyJS                      0.8.3\r\n - Plots                         0.15.0\r\n - PyCall                        1.15.0\r\n - PyPlot                        2.3.2\r\n - QML                           0.4.3\r\n - QuartzImageIO                 0.3.1\r\n - Revise                        0.1.1\r\n - Rotations                     0.6.1\r\n - Rsvg                          0.1.0\r\n - SQLite                        0.5.0\r\n - TestImages                    0.2.0\r\n - TextParse                     0.3.5\r\n125 additional packages:\r\n - ASTInterpreter2               0.1.1\r\n - AbstractFFTs                  0.2.1\r\n - AbstractNumbers               0.1.1\r\n - AxisAlgorithms                0.2.0\r\n - AxisArrays                    0.2.0\r\n - BilliardModels                0.0.0-             time_step (unregistered)\r\n - BinDeps                       0.8.5\r\n - Blink                         0.6.0\r\n - Blosc                         0.3.0\r\n - BufferedStreams               0.3.3\r\n - Cairo                         0.4.0\r\n - Calculus                      0.2.2\r\n - CatIndices                    0.1.0\r\n - CategoricalArrays             0.3.3\r\n - CodeTools                     0.4.7\r\n - CodecZlib                     0.4.2\r\n - Codecs                        0.4.0\r\n - ColorBrewer                   0.3.1\r\n - ColorTypes                    0.6.6\r\n - ColorVectorSpace              0.5.2\r\n - Compat                        0.46.0\r\n - ComputationalResources        0.2.0\r\n - Conda                         0.7.1\r\n - Contour                       0.4.0\r\n - CoordinateTransformations     0.4.1\r\n - CustomUnitRanges              0.1.0\r\n - CxxWrap                       0.5.0+             master\r\n - DataFrames                    0.11.4\r\n - DataStreams                   0.3.4\r\n - DataStructures                0.7.4\r\n - DataValues                    0.3.1\r\n - DebuggerFramework             0.1.2\r\n - Distances                     0.5.0\r\n - DocSeeker                     0.1.0\r\n - DocStringExtensions           0.4.2\r\n - DualNumbers                   0.3.0\r\n - FFTViews                      0.1.0\r\n - FFTW                          0.0.4\r\n - FactCheck                     0.4.3\r\n - FileIO                        0.6.1\r\n - FixedPointNumbers             0.4.3\r\n - FreeType                      1.3.0\r\n - FreeTypeAbstraction           0.1.0\r\n - GLAbstraction                 0.6.1\r\n - GLFW                          1.5.0\r\n - GLWindow                      0.7.1\r\n - Graphics                      0.2.0\r\n - Gtk                           0.13.1\r\n - HDF5                          0.8.8\r\n - Hiccup                        0.1.1\r\n - Homebrew                      0.6.1\r\n - HttpCommon                    0.3.0\r\n - HttpParser                    0.3.0\r\n - HttpServer                    0.2.0\r\n - IdentityRanges                0.1.0\r\n - ImageAxes                     0.4.0\r\n - ImageCore                     0.5.0\r\n - ImageFiltering                0.2.3\r\n - ImageMetadata                 0.4.0\r\n - ImageMorphology               0.0.2\r\n - ImageTransformations          0.4.1\r\n - Images                        0.12.0\r\n - IndirectArrays                0.3.0\r\n - Interact                      0.6.3\r\n - Interpolations                0.7.3\r\n - IntervalSets                  0.1.1\r\n - IterTools                     0.2.0\r\n - JSON                          0.16.4\r\n - Juno                          0.3.2\r\n - LNR                           0.0.2\r\n - LaTeXStrings                  0.3.0\r\n - Lazy                          0.12.0\r\n - LegacyStrings                 0.3.0\r\n - Libz                          0.2.4\r\n - MacroTools                    0.4.0\r\n - Makie                         0.0.0-             sd/efficientloop (unregistered, dirty)\r\n - MappedArrays                  0.0.7\r\n - MbedTLS                       0.5.4\r\n - Measures                      0.1.0\r\n - Media                         0.3.0\r\n - MeshIO                        0.1.1\r\n - Missings                      0.2.4\r\n - Mustache                      0.3.0\r\n - Mux                           0.2.3\r\n - NaNMath                       0.3.0\r\n - NamedTuples                   4.0.0\r\n - Nullables                     0.0.3\r\n - NumericIO                     0.2.0\r\n - OffsetArrays                  0.4.2\r\n - Packing                       0.1.0\r\n - PaddedViews                   0.2.0\r\n - PlotThemes                    0.2.0\r\n - PlotUtils                     0.4.4\r\n - PooledArrays                  0.1.1\r\n - Quaternions                   0.3.0\r\n - RangeArrays                   0.2.0\r\n - Ratios                        0.2.0\r\n - Reactive                      0.6.0\r\n - RecipesBase                   0.2.3\r\n - Reexport                      0.1.0\r\n - Requires                      0.4.3\r\n - SHA                           0.5.3\r\n - SIUnits                       0.1.0\r\n - ShowItLikeYouBuildIt          0.2.0\r\n - Showoff                       0.1.1\r\n - SignedDistanceFields          0.2.0\r\n - SimpleTraits                  0.5.1\r\n - SortingAlgorithms             0.2.0\r\n - SpecialFunctions              0.3.8\r\n - StatefulFunctions             0.0.0-             master (unregistered)\r\n - StaticArrays                  0.6.6\r\n - StatsBase                     0.19.5\r\n - StringDistances               0.2.0\r\n - TexExtensions                 0.1.0\r\n - TiledIteration                0.1.0\r\n - Tokenize                      0.4.2\r\n - TranscodingStreams            0.4.1\r\n - UAVisualization               0.0.0-             master (unregistered, dirty)\r\n - URIParser                     0.3.0\r\n - UnicodeFun                    0.1.0\r\n - WeakRefStrings                0.4.1\r\n - WebSockets                    0.4.0\r\n - WoodburyMatrices              0.2.2\r\n - ZMQ                           0.5.1\r\n - ZipFile                       0.5.0\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaPlots/Plots.jl/issues/comments/362628746","html_url":"https://github.com/JuliaPlots/Plots.jl/issues/1371#issuecomment-362628746","issue_url":"https://api.github.com/repos/JuliaPlots/Plots.jl/issues/1371","id":362628746,"user":{"login":"pbouffard","id":231346,"avatar_url":"https://avatars2.githubusercontent.com/u/231346?v=4","gravatar_id":"","url":"https://api.github.com/users/pbouffard","html_url":"https://github.com/pbouffard","followers_url":"https://api.github.com/users/pbouffard/followers","following_url":"https://api.github.com/users/pbouffard/following{/other_user}","gists_url":"https://api.github.com/users/pbouffard/gists{/gist_id}","starred_url":"https://api.github.com/users/pbouffard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbouffard/subscriptions","organizations_url":"https://api.github.com/users/pbouffard/orgs","repos_url":"https://api.github.com/users/pbouffard/repos","events_url":"https://api.github.com/users/pbouffard/events{/privacy}","received_events_url":"https://api.github.com/users/pbouffard/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T16:09:09Z","updated_at":"2018-02-02T16:09:09Z","author_association":"NONE","body":"@apalugniok I'm not sure where the problem is with your example as I haven't used Plotly directly in JavaScript before. But starting with their example (https://plot.ly/javascript/subplots/#subplots-with-shared-axes) and poking around a bit this is an MWE that has the functionality I'm looking for: https://codepen.io/anon/pen/yveXJo. Maybe the difference is having the plots stacked vertically instead of horizontally? If the latter wasn't possible that would be ok; for me at least the Nx1 subplots case with linked x axes is the most interesting."}}
{"actor":{"display_login":"pbouffard"}}