{"id":1879,"date":"2006-05-26T12:10:49","date_gmt":"2006-05-26T17:10:49","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=1879"},"modified":"2006-05-26T12:10:49","modified_gmt":"2006-05-26T17:10:49","slug":"plotting-multiple-y-scales","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2006\/05\/26\/plotting-multiple-y-scales\/","title":{"rendered":"Plotting multiple Y scales"},"content":{"rendered":"<p>Often times, people want to plot two vectors of data with the same x-axis, but the vectors are at wildly different values on the y-axis.  The vector with the smaller y values will often be just a flat line if you use the same scale for both.  For that reason, things like plotyy were invented.<\/p>\n<p>Zhipeng was not satisfied with our implementation, so he made his own with <a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=11178&#038;objectType=FILE (link no longer works)\">LayerPlot<\/a>.  Compare the difference!<\/p>\n<p><img decoding=\"async\" id=\"image1877\" height=300 alt=Plotyy src=\"https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/plotyy.jpg\" \/><br \/>\n<img decoding=\"async\" id=\"image1878\" height=300 alt=PlotLayer src=\"https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/plotLayer.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Often times, people want to plot two vectors of data with the same x-axis, but the vectors are at wildly different values on the y-axis.  The vector with the smaller y values will often be just a&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2006\/05\/26\/plotting-multiple-y-scales\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1879"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=1879"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1879\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=1879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=1879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=1879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}