nschloe / termplotlib

:chart_with_upwards_trend: Plotting on the command line
GNU General Public License v3.0
675 stars 19 forks source link

Third line that should not be there #78

Open jbrepogmailcom opened 1 year ago

jbrepogmailcom commented 1 year ago

Hello. Here is example of graph and values below it that produce the graph. Strangely, there is third linear line in the graph that is not based on any values. can you help please?

                                                                                 Difference vs Second

    3 +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      |                                                                                                                                                                         |
      |                                                                                                                                                                         |
  2.5 |                                                                                                                                                                     ****|
      |        ********                                                                                                                                                 ****    |
      |                *****************                                                                                                                               *        |
    2 |                                 *******                                                                                                                      **         |
      |                                        **                                                                                                                   *           |
      |                                          *****************                                                                                                 *            |
      |                                                           ********                                                                                       **             |
  1.5 |                                                                   *********                                                                             *               |
      |                                                                            ********                                                                  ***                |
      |                                                                                    *********                                                     ****                   |
    1 |                                                                                             ********                              **************************************|
      |                                                                                                     *********         ********************                      ****    |
      |                                                                                                   ************************       **                                     |
  0.5 |                                                                               ********************               *** ********* **                                       |
      |                                                           ********************                                 **             *                                         |
      |                                       ********************                                                 ****                                                         |
    0 |                   ********************                                                                 ****                                                             |
      |         **********                                                                                 ****                                                                 |
      |        ********               ***********                                                       ***                                                                     |
      |                *********  ****           ********                        **********           **                                                                        |
 -0.5 |                         **                       *********           ****          ***********                                                                          |
      |                                                           ***********                                                                                                   |
      |                                                                                                                                                                         |
   -1 +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      0                2                4                6                8                10               12               14               16               18               20
                                                                                        Second
[ 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20  1  2  3  4
  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20]
[ 2.34776062  2.16069498  2.25478764  2.06803089  1.82760618  1.77814672
  1.62389961  1.44814672  1.27525097  1.11216216  0.9930888   0.84606178
  0.72471042  0.60409266  0.40505792  1.07081081  0.94814672  0.94405405
  0.85027027  1.02915058 -0.23255018 -0.32664109 -0.58788666 -0.22428571
 -0.41620425 -0.53604486 -0.66657025 -0.76583825 -0.4138961  -0.54228453
 -0.53236128 -0.04028335  0.25994097  0.76797521  0.86655254  0.95952184
  0.92318772  1.28368359  2.41154073  2.54878985]