Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Parallel Coordinate Plot : Tickfont background doesn't change colour

Hi guys,

When I change the background of my parallel coordinate plot in python, the space directly around the ticktext on my vertical columns stays white, making it a bit ugly.

I’ve tried changing colours on tickfont but the problem seems to persist.

I note that the label text above the columns doesn’t have this issue.

is there a way to fix this?

#Generate a parallel coordinate plot
#Import necessary modules

import os
import numpy as np
import pandas as pd

import plotly
import plotly.graph_objects as go

#create a dataset

my_dictionary = {'A': [1,2,3,4,5],'B':[2,4,6,8,10],'C':[3,4,5,6,7]}

#Load dataset into a pandas dataframe

df = pd.DataFrame(my_dictionary)

#Make Parallel Coordinate Plot

plot = plotly.offline.plot

fig = go.Figure(data = 
       labelfont = dict(color = 'red'),
       tickfont = dict(color = 'blue'),
       line = dict(color = 'red'),
        dimensions = list([
                range = [0,6],
                constraintrange = [0,6],
                label = 'A',
                values = df['A'])             
                range = [0,12],
                constraintrange = [0,12],
                label = 'B',
                values = df['B'])             
                range = [0,8],
                constraintrange = [0,8],
                label = 'C',
                values = df['C'])             

    plot_bgcolor = 'black',
    paper_bgcolor = 'black'

plot(fig,auto_open = True)

I realise now that what is happening is there is a ‘halo’ or ‘shadow’ around each of the ticktext values.

I haven’t been able to disable them, it may be something that hasn’t been exposed yet