Group Abstract Group Abstract

Message Boards Message Boards

0
|
12.1K Views
|
6 Replies
|
7 Total Likes
View groups...
Share
Share this post:

How to plot a dual-axis chart

I need to plot the data in a dual-axis chart. Are there any examples or instructions? How do the axis scales and labels place on the left and right?

a = {100, 200, 300, 400, 500};
b = {1, 2, 3, 4, 5};
ListPlot[{a, b}]
POSTED BY: Tsai Ming-Chou
6 Replies

I never knew there was this resource~~~~ Thank you very much.

POSTED BY: Tsai Ming-Chou
Posted 6 years ago
a = {100, 200, 300, 400, 500};
b = {1, 2, 3, 4, 5}; 

ListPlot[{a, b}, Frame -> True, FrameTicks -> Automatic, 
  GridLines -> Automatic, PlotStyle -> PointSize@Large]

enter image description here

POSTED BY: Hans Milton

Thank you very much for your help !

I hope that there will be built-in functions for the next update.

POSTED BY: Tsai Ming-Chou
Posted 6 years ago
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard