How to convert axis from nanometer to angstrom in xmgrace? - axis

I have plotted the graph in which the x-axis values are in nanometer. But i want to the x-axis in angstroms.
How can i do this? From axis transform in Xmgrace?
Any suggestions are appreciated.

I think you are asking how to rescale the values of your x data series by a multiplication factor. In your case, in order to convert nm to angstrom you would multiply the x data by 10, e.g. 0.1 nm would become 1 Angstrom.
In the xmgrace GUI menu click Data > Transformations > Evaluate Expression
Method 1: Modifying the original set
In both the "Source" and "Destination" panes select the same set you want to convert so it is highlighted.
In the Formula box type X = X*10 then click Apply.
Method 2: Creating a new set first
On either the "Source" or "Destination" pane right-click on the existing set and Duplicate it.
Now select the original set on the left, and the new set on the right.
In the Formula box type X = X*10 then click Apply.
You can now select either the original or transformed set and hide the other one.
Finally...
In both Methods, now you can set your x axis label to display the updated units.

Related

How to put color for the whole cell

I am trying to color code my list in tableau with red color for dates in end date lesser than today() or when concern column is Yes. I created a dual axis of 1 and 0 to get the cells with color in one column and get the text in another and created a dual axis so that they overlap. For that I created a calculated column where I gave the color red if the conditions meet.
This is in my calculated field:
Color:
IF TODAY()>[End Date] OR [Concern (Yes/No)]="Yes" then "RED"
ELSE "None"
END
However even after totally maximizing the size of the square for color for 1. The fields do not fill the whole cell. How do I fill the whole cell?
Here is the pic:
Please help me out here?
You may have 2 options here. I haven't tested so will leave you to see what works best.
Option 1 - use a measure and a Square mark type. Create a calculated field that returns a measure. We can adapt the formula you have built:
INT(TODAY()>[End Date] OR [Concern (Yes/No)]="Yes")
Put that field on Columns - aggregate to either MIN or MAX, doesn't matter - and set the Mark Type as Square. Also put this field on Colour and set your colours accordingly. Put your text on the Label shelf (or Text, I forget what it's called with the Square mark type.
Option 2 - similar to what you have now. You don't need MIN(1) and MIN(0), just one of those should suffice. Make it Gantt, the above calculated field on colours and your text field on Label. This article on the Tableau placeholder technique describes how to do this.

How can I put different colors for the different elements of a single dimension

How can I set different colors for the different elements of a single dimension with Tableau Desktop?
I want the colors in fields of dimension and not like the picture.
Thank you
You can drag that same dimension on the Color mark in the Marks area, which by default is displayed below filters, right to the Data area.
To change the colors that Tableau assigns by default you can click on the Color mark and use "Select Colors": it will open a window where you can select the color you want for each value of the dimension you're using.
Edit
Unfortunately you cannot color the background of a dimension axis. You can achieve the same result with a trick though:
Drag the dimension to rows
Double-click in columns and write MIN(1)
From the marks dropdown, make sure Bar is selected
Drag the dimension to the Color mark
Drag the dimension to the Label mark
From the Label mark, set the horizontal alignment to either left or center
From the Label mark, mark the flag to allow labels to overlap other marks
From the Size mark, crank the size all the way up
Right-click on the dimension from the rows area and unselect Show Header
Right click on the MIN(1) axis below the graph, click Edit Axis, select Fixed among the Range options and fix start and end to 0 and 1 respectively
Right click on the MIN(1) from the columns area and unselect Show Header
Of course adjustments can be made to better suit your needs, but this should give you an idea of the whole process.

SSRS Removing percent sign and word "Percentage" on a pareto chart

I have a Pareto chart that I am trying to remove the "%" sign on the Y axis and the word "Percentage", but im not able to find the settings to remove or hide this.
In the Design tab, select the secondary axis, i.e, the axis with the percentages.
Be sure to deselect the Show Axis Title option, it will dessapear the Percentage title.
Now go to Secondary Vertical Axis Properties... option.
Go to Number tab and select Number option. It will format the axis labels to show only numbers without %.
Let me know if this helps.

Tableau - Combining multiple line graphs into single plot

I am trying to get all my lines to overlap on a single graph. How would I go about doing this? Here is what I managed to get so far:
And when I say overlap, I mean something similar to this:
Here is more information about my data:
Each of the attributes (e.g. 'Intro', 'Flair') have the following integers in the data: 1,2,3,4 with an associated pcttip (tip percentage) as a decimal number.
I have manually right clicked on each of the measures in the columns area and changed them to "dimension".
The dataset can be found here if you would like to try: https://www.dropbox.com/s/je72hbso2tzby60/Tableau_data_2.xlsx?dl=0
You can do this in Tableau fairly easily. You need to pivot some of your data.
Click on the data source in the top-left and select Edit Data Source
In the bottom pane, where your data is previewed, select/highlight each of the fields that you want measured (Intro, Flair, etc.)
Right-Click with those fields selected and click Pivot
When you return to your sheet, you will see a new dimension field and measure field for your pivot.
Add [Pivot field values] to the Columns section - make sure this is set to 'Dimension' and 'Continuous'
Add [Pivot field names] to the Color card
Pivot
Output
Drag 'Repeat' pill to the X-axis on 'Intro' then drag the other pills into 'Intro'
Something similar to this: https://onlinehelp.tableau.com/current/pro/online/mac/en-us/buildexamples_line.html

libre office calc: Changing the interval that labels display at

I have a 2 column spreadsheet. The first column is a label, the second is a value. I want to make a chart that displays every single label on the y axis but by default calc displays the labels at intervals, like every 5th one. How can I change this?
You can modify the axis when in chart edit mode. To do so:
Double-click on the chart; after this, there's a light grey border around the chart, telling you that you've activeted chart edit mode:
Open Menu "Format" -> "Axis..." -> "X Axis" (or Y axis, depending o the layout of your chart):
In the Axis Format window, select the "Label" tab:
Set the label formatting as desired. The optimal format settings depend on the labels. If they aren't too long, staggering the labels may help. If they don't fit even staggered, then you could modify the text direction, e.g. settiing it to 45 degrees.