+ Reply to Thread
Results 1 to 2 of 2

How to change into hexadecimals the format code of a legend of a contour plot

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    various
    Posts
    9

    How to change into hexadecimals the format code of a legend of a contour plot

    I have created the spreadsheet attached, in which I plot my data using a contour plot. The legend of the contour plot is generated automatically by Excel. You can then select the axis format by doing the following:

    -Click "Layout" under the "Chart Tools" tab
    -Select "Vertical (Value) Axis) from the top left drop down menu
    -Click "Format Selection" just below the above drop down menu
    -in the "Format Axis" window that gets opened, go to "Number" and select "Custom"

    Under "Format code" I would like to enter a format that will then show the hexadecimal version of the number being currently displayed in the legend.

    so if say z is the actual number that get plotted, I would like the legend to display dec2hex(z).
    So 15-20 will look like F-14

    Unfortunately I cannot enter any functions in the "format code" so I was wondering if there is a way of specifying the format of the number to be hexadecimal.

    Since Excel interprets the hex numbers as string, I cannot populated my cells with hex numbers and plot them, since they would be treated as text and not actual numbers.
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: How to change into hexadecimals the format code of a legend of a contour plot

    Best you can do is fake the legend using another chart object
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1