What's the best way to plot a bar graph with large numeric difference in values? The 2019 Stack Overflow Developer Survey Results Are InWhat is the difference between affinity matrix eigenvectors and graph Laplacian eigenvectors in the context of spectral clustering?What are the best way to handle missing valuesHow to plot a 3-axis bar chart with matplotlib (and pandas + jupyter)What's the best classification model for this recommendation engine?How to best visualize data when outliers lead to lack of contrasting colors for the rest of the plot?Aggregating small values in a frequency bar plotWhat's an efficient way to plot many features for EDA in python?What is the difference between symmetric bipartite graphs and a complete bipartite graph?Is there a way to Label/Annotate My Bubble Plot (Scatter plot with a z-axis) on matplotlib?Binary Search Tree with categorical and numeric values in python

Does it makes sense to buy a new cycle to learn riding?

What is the best strategy for white in this position?

Access elements in std::string where positon of string is greater than its size

Is domain driven design an anti-SQL pattern?

How to manage monthly salary

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Does a dangling wire really electrocute me if I'm standing in water?

How do you say "canon" as in "official for a story universe"?

Idiomatic way to prevent slicing?

Springs with some finite mass

On the insanity of kings as an argument against monarchy

Why could you hear an Amstrad CPC working?

What does "sndry explns" mean in one of the Hitchhiker's guide books?

Should I write numbers in words or as numerals when there are multiple next to each other?

Time travel alters history but people keep saying nothing's changed

Is this food a bread or a loaf?

What is the use of option -o in the useradd command?

Could JWST stay at L2 "forever"?

Limit to 0 ambiguity

Does duplicating a spell with Wish count as casting that spell?

Why do I get badly formatted numerical results when I use StringForm?

Lethal sonic weapons

Why is the maximum length of OpenWrt’s root password 8 characters?

I see my dog run



What's the best way to plot a bar graph with large numeric difference in values?



The 2019 Stack Overflow Developer Survey Results Are InWhat is the difference between affinity matrix eigenvectors and graph Laplacian eigenvectors in the context of spectral clustering?What are the best way to handle missing valuesHow to plot a 3-axis bar chart with matplotlib (and pandas + jupyter)What's the best classification model for this recommendation engine?How to best visualize data when outliers lead to lack of contrasting colors for the rest of the plot?Aggregating small values in a frequency bar plotWhat's an efficient way to plot many features for EDA in python?What is the difference between symmetric bipartite graphs and a complete bipartite graph?Is there a way to Label/Annotate My Bubble Plot (Scatter plot with a z-axis) on matplotlib?Binary Search Tree with categorical and numeric values in python










0












$begingroup$


I'm graphing the value of the Ruble against the US Dollar in the 1990s. There was hyper-inflation from 1992-1997 (where the "y" values expanded from 125 to 6000). On Jan 1st 1998, the government revalued the money to 5. Since then the number has trended upward but has only reached 70 or so.



This creates a problem in my bar or line graph. You can't understand the low values after the stabilization. Any suggestions to help with this discrepancy when viewing the whole dataset in one graph?



Bar graph showing precipitous drop in values and therefore affecting the scale of the graph.



Plotting using matplotlib










share|improve this question







New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$











  • $begingroup$
    Is it necessary to see the entire graph at once? Is it really meaningful to see comparisons between each side of the arbitrary revaluation? Does the data need to be directly, easily interpretable?
    $endgroup$
    – Upper_Case
    9 hours ago











  • $begingroup$
    It would be nice. I've produced two individual graphs (before and after the revaluation). But if I wanted to view a graph like the image posted, could I view it in a different way, such as a Logarithmic scale? or to put an <...> in the y axis at some point to save space? Just wondering what others do in this situation.
    $endgroup$
    – Peter Arsenault
    9 hours ago






  • 1




    $begingroup$
    I think you should use a log scale but if you are going to present this to someone, make sure you be emphatic about it!
    $endgroup$
    – Pedro Henrique Monforte
    9 hours ago















0












$begingroup$


I'm graphing the value of the Ruble against the US Dollar in the 1990s. There was hyper-inflation from 1992-1997 (where the "y" values expanded from 125 to 6000). On Jan 1st 1998, the government revalued the money to 5. Since then the number has trended upward but has only reached 70 or so.



This creates a problem in my bar or line graph. You can't understand the low values after the stabilization. Any suggestions to help with this discrepancy when viewing the whole dataset in one graph?



Bar graph showing precipitous drop in values and therefore affecting the scale of the graph.



Plotting using matplotlib










share|improve this question







New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$











  • $begingroup$
    Is it necessary to see the entire graph at once? Is it really meaningful to see comparisons between each side of the arbitrary revaluation? Does the data need to be directly, easily interpretable?
    $endgroup$
    – Upper_Case
    9 hours ago











  • $begingroup$
    It would be nice. I've produced two individual graphs (before and after the revaluation). But if I wanted to view a graph like the image posted, could I view it in a different way, such as a Logarithmic scale? or to put an <...> in the y axis at some point to save space? Just wondering what others do in this situation.
    $endgroup$
    – Peter Arsenault
    9 hours ago






  • 1




    $begingroup$
    I think you should use a log scale but if you are going to present this to someone, make sure you be emphatic about it!
    $endgroup$
    – Pedro Henrique Monforte
    9 hours ago













0












0








0





$begingroup$


I'm graphing the value of the Ruble against the US Dollar in the 1990s. There was hyper-inflation from 1992-1997 (where the "y" values expanded from 125 to 6000). On Jan 1st 1998, the government revalued the money to 5. Since then the number has trended upward but has only reached 70 or so.



This creates a problem in my bar or line graph. You can't understand the low values after the stabilization. Any suggestions to help with this discrepancy when viewing the whole dataset in one graph?



Bar graph showing precipitous drop in values and therefore affecting the scale of the graph.



Plotting using matplotlib










share|improve this question







New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




I'm graphing the value of the Ruble against the US Dollar in the 1990s. There was hyper-inflation from 1992-1997 (where the "y" values expanded from 125 to 6000). On Jan 1st 1998, the government revalued the money to 5. Since then the number has trended upward but has only reached 70 or so.



This creates a problem in my bar or line graph. You can't understand the low values after the stabilization. Any suggestions to help with this discrepancy when viewing the whole dataset in one graph?



Bar graph showing precipitous drop in values and therefore affecting the scale of the graph.



Plotting using matplotlib







python visualization graphs matplotlib






share|improve this question







New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









Peter ArsenaultPeter Arsenault

1




1




New contributor




Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Peter Arsenault is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • $begingroup$
    Is it necessary to see the entire graph at once? Is it really meaningful to see comparisons between each side of the arbitrary revaluation? Does the data need to be directly, easily interpretable?
    $endgroup$
    – Upper_Case
    9 hours ago











  • $begingroup$
    It would be nice. I've produced two individual graphs (before and after the revaluation). But if I wanted to view a graph like the image posted, could I view it in a different way, such as a Logarithmic scale? or to put an <...> in the y axis at some point to save space? Just wondering what others do in this situation.
    $endgroup$
    – Peter Arsenault
    9 hours ago






  • 1




    $begingroup$
    I think you should use a log scale but if you are going to present this to someone, make sure you be emphatic about it!
    $endgroup$
    – Pedro Henrique Monforte
    9 hours ago
















  • $begingroup$
    Is it necessary to see the entire graph at once? Is it really meaningful to see comparisons between each side of the arbitrary revaluation? Does the data need to be directly, easily interpretable?
    $endgroup$
    – Upper_Case
    9 hours ago











  • $begingroup$
    It would be nice. I've produced two individual graphs (before and after the revaluation). But if I wanted to view a graph like the image posted, could I view it in a different way, such as a Logarithmic scale? or to put an <...> in the y axis at some point to save space? Just wondering what others do in this situation.
    $endgroup$
    – Peter Arsenault
    9 hours ago






  • 1




    $begingroup$
    I think you should use a log scale but if you are going to present this to someone, make sure you be emphatic about it!
    $endgroup$
    – Pedro Henrique Monforte
    9 hours ago















$begingroup$
Is it necessary to see the entire graph at once? Is it really meaningful to see comparisons between each side of the arbitrary revaluation? Does the data need to be directly, easily interpretable?
$endgroup$
– Upper_Case
9 hours ago





$begingroup$
Is it necessary to see the entire graph at once? Is it really meaningful to see comparisons between each side of the arbitrary revaluation? Does the data need to be directly, easily interpretable?
$endgroup$
– Upper_Case
9 hours ago













$begingroup$
It would be nice. I've produced two individual graphs (before and after the revaluation). But if I wanted to view a graph like the image posted, could I view it in a different way, such as a Logarithmic scale? or to put an <...> in the y axis at some point to save space? Just wondering what others do in this situation.
$endgroup$
– Peter Arsenault
9 hours ago




$begingroup$
It would be nice. I've produced two individual graphs (before and after the revaluation). But if I wanted to view a graph like the image posted, could I view it in a different way, such as a Logarithmic scale? or to put an <...> in the y axis at some point to save space? Just wondering what others do in this situation.
$endgroup$
– Peter Arsenault
9 hours ago




1




1




$begingroup$
I think you should use a log scale but if you are going to present this to someone, make sure you be emphatic about it!
$endgroup$
– Pedro Henrique Monforte
9 hours ago




$begingroup$
I think you should use a log scale but if you are going to present this to someone, make sure you be emphatic about it!
$endgroup$
– Pedro Henrique Monforte
9 hours ago










1 Answer
1






active

oldest

votes


















1












$begingroup$

A log scale will make the difference before and after revaluation look less extreme, and a log transformation is usually pretty defensible for things measured in units of currency (especially when there are no 0-value entries). Other transformations exist, but since this is mostly for aesthetics I don't think that you'd need much that a log transformation couldn't offer.



Fiddling with multiple vertical axes and continuity breaks may help, but at an almost-guaranteed cost of making the graph very difficult to view and interpret correctly. If you need to show both periods, I would probably log transform.



You will know your needs far better than I do, but I do question a little bit how valuable seeing the before and after this way is. The revaluation was an arbitrary decision introduced at an arbitrary time, and behavior of the currency before the revaluation is probably not very informative of anything that happened afterwards (and vice-versa). It's far from clear to me that there is much value in showing both at once like this, at least from my naïve look at a single graph.



The main reason I can think of to show both at once this way is to display how extreme the inflation was, in which case the scale differences would be a feature and not a bug.






share|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "557"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Peter Arsenault is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48990%2fwhats-the-best-way-to-plot-a-bar-graph-with-large-numeric-difference-in-values%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    A log scale will make the difference before and after revaluation look less extreme, and a log transformation is usually pretty defensible for things measured in units of currency (especially when there are no 0-value entries). Other transformations exist, but since this is mostly for aesthetics I don't think that you'd need much that a log transformation couldn't offer.



    Fiddling with multiple vertical axes and continuity breaks may help, but at an almost-guaranteed cost of making the graph very difficult to view and interpret correctly. If you need to show both periods, I would probably log transform.



    You will know your needs far better than I do, but I do question a little bit how valuable seeing the before and after this way is. The revaluation was an arbitrary decision introduced at an arbitrary time, and behavior of the currency before the revaluation is probably not very informative of anything that happened afterwards (and vice-versa). It's far from clear to me that there is much value in showing both at once like this, at least from my naïve look at a single graph.



    The main reason I can think of to show both at once this way is to display how extreme the inflation was, in which case the scale differences would be a feature and not a bug.






    share|improve this answer









    $endgroup$

















      1












      $begingroup$

      A log scale will make the difference before and after revaluation look less extreme, and a log transformation is usually pretty defensible for things measured in units of currency (especially when there are no 0-value entries). Other transformations exist, but since this is mostly for aesthetics I don't think that you'd need much that a log transformation couldn't offer.



      Fiddling with multiple vertical axes and continuity breaks may help, but at an almost-guaranteed cost of making the graph very difficult to view and interpret correctly. If you need to show both periods, I would probably log transform.



      You will know your needs far better than I do, but I do question a little bit how valuable seeing the before and after this way is. The revaluation was an arbitrary decision introduced at an arbitrary time, and behavior of the currency before the revaluation is probably not very informative of anything that happened afterwards (and vice-versa). It's far from clear to me that there is much value in showing both at once like this, at least from my naïve look at a single graph.



      The main reason I can think of to show both at once this way is to display how extreme the inflation was, in which case the scale differences would be a feature and not a bug.






      share|improve this answer









      $endgroup$















        1












        1








        1





        $begingroup$

        A log scale will make the difference before and after revaluation look less extreme, and a log transformation is usually pretty defensible for things measured in units of currency (especially when there are no 0-value entries). Other transformations exist, but since this is mostly for aesthetics I don't think that you'd need much that a log transformation couldn't offer.



        Fiddling with multiple vertical axes and continuity breaks may help, but at an almost-guaranteed cost of making the graph very difficult to view and interpret correctly. If you need to show both periods, I would probably log transform.



        You will know your needs far better than I do, but I do question a little bit how valuable seeing the before and after this way is. The revaluation was an arbitrary decision introduced at an arbitrary time, and behavior of the currency before the revaluation is probably not very informative of anything that happened afterwards (and vice-versa). It's far from clear to me that there is much value in showing both at once like this, at least from my naïve look at a single graph.



        The main reason I can think of to show both at once this way is to display how extreme the inflation was, in which case the scale differences would be a feature and not a bug.






        share|improve this answer









        $endgroup$



        A log scale will make the difference before and after revaluation look less extreme, and a log transformation is usually pretty defensible for things measured in units of currency (especially when there are no 0-value entries). Other transformations exist, but since this is mostly for aesthetics I don't think that you'd need much that a log transformation couldn't offer.



        Fiddling with multiple vertical axes and continuity breaks may help, but at an almost-guaranteed cost of making the graph very difficult to view and interpret correctly. If you need to show both periods, I would probably log transform.



        You will know your needs far better than I do, but I do question a little bit how valuable seeing the before and after this way is. The revaluation was an arbitrary decision introduced at an arbitrary time, and behavior of the currency before the revaluation is probably not very informative of anything that happened afterwards (and vice-versa). It's far from clear to me that there is much value in showing both at once like this, at least from my naïve look at a single graph.



        The main reason I can think of to show both at once this way is to display how extreme the inflation was, in which case the scale differences would be a feature and not a bug.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 9 hours ago









        Upper_CaseUpper_Case

        1763




        1763




















            Peter Arsenault is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Peter Arsenault is a new contributor. Be nice, and check out our Code of Conduct.












            Peter Arsenault is a new contributor. Be nice, and check out our Code of Conduct.











            Peter Arsenault is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Data Science Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48990%2fwhats-the-best-way-to-plot-a-bar-graph-with-large-numeric-difference-in-values%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            ValueError: Error when checking input: expected conv2d_13_input to have shape (3, 150, 150) but got array with shape (150, 150, 3)2019 Community Moderator ElectionError when checking : expected dense_1_input to have shape (None, 5) but got array with shape (200, 1)Error 'Expected 2D array, got 1D array instead:'ValueError: Error when checking input: expected lstm_41_input to have 3 dimensions, but got array with shape (40000,100)ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)ValueError: Error when checking target: expected dense_2 to have shape (1,) but got array with shape (0,)Keras exception: ValueError: Error when checking input: expected conv2d_1_input to have shape (150, 150, 3) but got array with shape (256, 256, 3)Steps taking too long to completewhen checking input: expected dense_1_input to have shape (13328,) but got array with shape (317,)ValueError: Error when checking target: expected dense_3 to have shape (None, 1) but got array with shape (7715, 40000)Keras exception: Error when checking input: expected dense_input to have shape (2,) but got array with shape (1,)

            Ружовы пелікан Змест Знешні выгляд | Пашырэнне | Асаблівасці біялогіі | Літаратура | НавігацыяДагледжаная версіяправерана1 зменаДагледжаная версіяправерана1 змена/ 22697590 Сістэматыкана ВіківідахВыявына Вікісховішчы174693363011049382

            Illegal assignment from SObject to ContactFetching String, Id from Map - Illegal Assignment Id to Field / ObjectError: Compile Error: Illegal assignment from String to BooleanError: List has no rows for assignment to SObjectError on Test Class - System.QueryException: List has no rows for assignment to SObjectRemote action problemDML requires SObject or SObject list type error“Illegal assignment from List to List”Test Class Fail: Batch Class: System.QueryException: List has no rows for assignment to SObjectMapping to a user'List has no rows for assignment to SObject' Mystery